Fix this xform: (sra (shl X, m), result_size) -> (sign_extend (trunc (shl X, result_s...
authorEvan Cheng <evan.cheng@apple.com>
Thu, 20 Mar 2008 02:18:41 +0000 (02:18 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 20 Mar 2008 02:18:41 +0000 (02:18 +0000)
commit260e07ec8ceb98337a9eeb5377d97dfcc0058a25
treed7ef645f402fee9016a843d6e778c048612859c7
parent71a2cb25ebc818383dd0f80475bc166f834e8d99
Fix this xform: (sra (shl X, m), result_size) -> (sign_extend (trunc (shl X, result_size - n - m)))

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48578 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/2008-03-19-DAGCombinerBug.ll [new file with mode: 0644]