[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Mar 25 14:19:14 PST 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
DAGCombiner.cpp updated: 1.128 -> 1.129
---
Log message:
Don't call SimplifyDemandedBits on vectors
---
Diffs of the changes: (+2 -1)
DAGCombiner.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.128 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.129
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.128 Sat Mar 18 19:27:56 2006
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Sat Mar 25 16:19:00 2006
@@ -1120,7 +1120,8 @@
}
// fold (and (sign_extend_inreg x, i16 to i32), 1) -> (and x, 1)
// fold (and (sra)) -> (and (srl)) when possible.
- if (SimplifyDemandedBits(SDOperand(N, 0)))
+ if (!MVT::isVector(VT) &&
+ SimplifyDemandedBits(SDOperand(N, 0)))
return SDOperand();
// fold (zext_inreg (extload x)) -> (zextload x)
if (N0.getOpcode() == ISD::EXTLOAD) {
More information about the llvm-commits
mailing list