[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Nov 9 08:50:59 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAGISel.cpp updated: 1.95 -> 1.96
---
Log message:
Fix CodeGen/X86/shift-folding.ll:test3 on X86
---
Diffs of the changes: (+1 -1)
SelectionDAGISel.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.95 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.96
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.95 Tue Nov 8 23:03:03 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Wed Nov 9 10:50:40 2005
@@ -641,7 +641,7 @@
if (isPowerOf2_64(ElementSize)) {
unsigned Amt = Log2_64(ElementSize);
IdxN = DAG.getNode(ISD::SHL, N.getValueType(), IdxN,
- getIntPtrConstant(Amt));
+ DAG.getConstant(Amt, TLI.getShiftAmountTy()));
N = DAG.getNode(ISD::ADD, N.getValueType(), N, IdxN);
continue;
}
More information about the llvm-commits
mailing list