[llvm-commits] CVS: llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
Rafael Espindola
rafael.espindola at gmail.com
Mon Sep 11 12:23:46 PDT 2006
Changes in directory llvm/lib/Target/ARM:
ARMISelDAGToDAG.cpp updated: 1.42 -> 1.43
---
Log message:
add the correct fallback for ARMDAGToDAGISel::SelectAddrMode1
---
Diffs of the changes: (+3 -6)
ARMISelDAGToDAG.cpp | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
Index: llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
diff -u llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.42 llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.43
--- llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.42 Mon Sep 11 12:25:40 2006
+++ llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp Mon Sep 11 14:23:32 2006
@@ -482,19 +482,16 @@
bool ARMDAGToDAGISel::SelectAddrMode1(SDOperand N,
SDOperand &Arg) {
switch(N.getOpcode()) {
- case ISD::CopyFromReg:
- Arg = N;
- return true;
case ISD::Constant: {
//TODO:check that we have a valid constant
int32_t t = cast<ConstantSDNode>(N)->getValue();
Arg = CurDAG->getTargetConstant(t, MVT::i32);
return true;
}
- default:
- std::cerr << "OpCode = " << N.getOpcode() << "\n";
- assert(0);
}
+
+ Arg = N;
+ return true;
}
//register plus/minus 12 bit offset
More information about the llvm-commits
mailing list