Fix DAGCombiner to avoid going into an infinite loop when it
authorDan Gohman <gohman@apple.com>
Wed, 3 Nov 2010 01:47:46 +0000 (01:47 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 3 Nov 2010 01:47:46 +0000 (01:47 +0000)
commit394d6298bcf89a75b51c8314a6705f6984e46b49
tree1143d9c1a657029f1c4eebaa034330f16ac313c9
parent2915eb44301f1943df870efe37c424a6e8bdacfe
Fix DAGCombiner to avoid going into an infinite loop when it
encounters (and:i64 (shl:i64 (load:i64), 1), 0xffffffff).
This fixes rdar://8606584.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118143 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/narrow-shl-load.ll [new file with mode: 0755]