Insert ANY_EXTEND node instead of invalid truncate during DAG Combining (X & 1),
authorAnton Korobeynikov <asl@math.spbu.ru>
Sat, 1 May 2010 12:52:34 +0000 (12:52 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Sat, 1 May 2010 12:52:34 +0000 (12:52 +0000)
commit17458a786e4d3eeff9c66fc0ec284b763df53642
treed9bd4e8ef9bbdc729d1cf4c93f99daf2fbab3d57
parent1b17614a7283f903363f7c4305da6ea742d3d28b
Insert ANY_EXTEND node instead of invalid truncate during DAG Combining (X & 1),
when needed. This fixes PR7001

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102838 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/MSP430/2010-05-01-CombinerAnd.ll [new file with mode: 0644]