[llvm-commits] CVS: llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp IA64ISelLowering.cpp
Evan Cheng
evan.cheng at apple.com
Tue Sep 12 14:02:34 PDT 2006
Changes in directory llvm/lib/Target/IA64:
IA64ISelDAGToDAG.cpp updated: 1.53 -> 1.54
IA64ISelLowering.cpp updated: 1.42 -> 1.43
---
Log message:
Reflects MachineConstantPoolEntry changes.
---
Diffs of the changes: (+2 -2)
IA64ISelDAGToDAG.cpp | 2 +-
IA64ISelLowering.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp
diff -u llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp:1.53 llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp:1.54
--- llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp:1.53 Sun Aug 27 03:12:51 2006
+++ llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp Tue Sep 12 16:02:20 2006
@@ -429,7 +429,7 @@
case ISD::ConstantPool: { // TODO: nuke the constant pool
// (ia64 doesn't need one)
ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(N);
- Constant *C = CP->get();
+ Constant *C = CP->getConstVal();
SDOperand CPI = CurDAG->getTargetConstantPool(C, MVT::i64,
CP->getAlignment());
return CurDAG->getTargetNode(IA64::ADDL_GA, MVT::i64, // ?
Index: llvm/lib/Target/IA64/IA64ISelLowering.cpp
diff -u llvm/lib/Target/IA64/IA64ISelLowering.cpp:1.42 llvm/lib/Target/IA64/IA64ISelLowering.cpp:1.43
--- llvm/lib/Target/IA64/IA64ISelLowering.cpp:1.42 Mon Sep 4 01:21:35 2006
+++ llvm/lib/Target/IA64/IA64ISelLowering.cpp Tue Sep 12 16:02:20 2006
@@ -136,7 +136,7 @@
else if (Op.getOpcode() == ISD::EXTLOAD || Op.getOpcode() == ISD::LOAD) {
// Maybe this has already been legalized into the constant pool?
if (ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(Op.getOperand(1)))
- if (ConstantFP *CFP = dyn_cast<ConstantFP>(CP->get()))
+ if (ConstantFP *CFP = dyn_cast<ConstantFP>(CP->getConstVal()))
return CFP->isExactlyValue(-0.0) || CFP->isExactlyValue(0.0);
}
return false;
More information about the llvm-commits
mailing list