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)
commit8b0d4f61bbe07060a4638ae1d3731dec09d13854
treeb7138cc7197e2f084ffe51c3859f72b0803f7b8d
parentf5a595024f614fbc5d4a28adec6353b31716b597
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]