[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelLowering.cpp
Evan Cheng
evan.cheng at apple.com
Tue Jan 31 14:21:50 PST 2006
Changes in directory llvm/lib/Target/Alpha:
AlphaISelLowering.cpp updated: 1.35 -> 1.36
---
Log message:
Allow the specification of explicit alignments for constant pool entries.
---
Diffs of the changes: (+3 -2)
AlphaISelLowering.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/Alpha/AlphaISelLowering.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelLowering.cpp:1.35 llvm/lib/Target/Alpha/AlphaISelLowering.cpp:1.36
--- llvm/lib/Target/Alpha/AlphaISelLowering.cpp:1.35 Sun Jan 29 00:25:22 2006
+++ llvm/lib/Target/Alpha/AlphaISelLowering.cpp Tue Jan 31 16:21:34 2006
@@ -482,8 +482,9 @@
}
}
case ISD::ConstantPool: {
- Constant *C = cast<ConstantPoolSDNode>(Op)->get();
- SDOperand CPI = DAG.getTargetConstantPool(C, MVT::i64);
+ ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
+ Constant *C = CP->get();
+ SDOperand CPI = DAG.getTargetConstantPool(C, MVT::i64, CP->getAlignment());
SDOperand Hi = DAG.getNode(AlphaISD::GPRelHi, MVT::i64, CPI,
DAG.getNode(AlphaISD::GlobalBaseReg, MVT::i64));
More information about the llvm-commits
mailing list