Fix DAGCombiner to avoid folding a sext-in-reg or similar through a shl
authorDan Gohman <gohman@apple.com>
Tue, 9 Nov 2010 01:54:35 +0000 (01:54 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 9 Nov 2010 01:54:35 +0000 (01:54 +0000)
commit6a559cd6959bef28d20acef2129e5510bcc12bb8
tree46cbdb94111f9f9d13a07eb18b71de8dcabf8a18
parentbe7c5116a754b4c539b4e385006452af13fe6df1
Fix DAGCombiner to avoid folding a sext-in-reg or similar through a shl
in order to fold it into a load.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118471 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/narrow-shl-load.ll