OSDN Git Service

Fix CodeGenPrepare's address-mode sinking to handle unusual
authorDan Gohman <gohman@apple.com>
Tue, 2 Jun 2009 21:29:13 +0000 (21:29 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 2 Jun 2009 21:29:13 +0000 (21:29 +0000)
commit53dce4208418b8df00622e155e1866142f914c9a
treeb7138cc7197e2f084ffe51c3859f72b0803f7b8d
parent2041d9a0ce2dc227707ea060e8fdce0553caa797
Fix CodeGenPrepare's address-mode sinking to handle unusual
addresses, involving Base values which do not have Pointer type.
This fixes PR4297.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72739 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/CodeGenPrepare.cpp
test/CodeGen/X86/codegen-prepare-cast.ll [new file with mode: 0644]