[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp
Evan Cheng
evan.cheng at apple.com
Sat Feb 25 01:55:32 PST 2006
Changes in directory llvm/lib/Target/X86:
X86ISelLowering.cpp updated: 1.96 -> 1.97
---
Log message:
Added a common about the need for X86ISD::Wrapper.
---
Diffs of the changes: (+7 -0)
X86ISelLowering.cpp | 7 +++++++
1 files changed, 7 insertions(+)
Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.96 llvm/lib/Target/X86/X86ISelLowering.cpp:1.97
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.96 Thu Feb 23 14:41:18 2006
+++ llvm/lib/Target/X86/X86ISelLowering.cpp Sat Feb 25 03:55:19 2006
@@ -1829,6 +1829,13 @@
return DAG.getNode(X86ISD::REP_MOVS, MVT::Other, Chain,
DAG.getValueType(AVT), InFlag);
}
+
+ // ConstantPool, GlobalAddress, and ExternalSymbol are lowered as their
+ // target countpart wrapped in the X86ISD::Wrapper node. Suppose N is
+ // one of the above mentioned nodes. It has to be wrapped because otherwise
+ // Select(N) returns N. So the raw TargetGlobalAddress nodes, etc. can only
+ // be used to form addressing mode. These wrapped nodes will be selected
+ // into MOV32ri.
case ISD::ConstantPool: {
ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
SDOperand Result = DAG.getNode(X86ISD::Wrapper, getPointerTy(),
More information about the llvm-commits
mailing list