[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp

Evan Cheng evan.cheng at apple.com
Thu Jul 27 20:04:05 CDT 2006



Changes in directory llvm/lib/Target/X86:

X86ISelDAGToDAG.cpp updated: 1.82 -> 1.83
---
Log message:

Rename IsFoldableBy to CanBeFoldedleBy

---
Diffs of the changes:  (+3 -3)

 X86ISelDAGToDAG.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
diff -u llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.82 llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.83
--- llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.82	Thu Jul 27 19:49:31 2006
+++ llvm/lib/Target/X86/X86ISelDAGToDAG.cpp	Thu Jul 27 20:03:48 2006
@@ -118,7 +118,7 @@
 
     virtual void EmitFunctionEntryCode(Function &Fn, MachineFunction &MF);
 
-    virtual bool IsFoldableBy(SDNode *N, SDNode *U);
+    virtual bool CanBeFoldedBy(SDNode *N, SDNode *U);
 
 // Include the pieces autogenerated from the target description.
 #include "X86GenDAGISel.inc"
@@ -232,7 +232,7 @@
   };
 }
 
-bool X86DAGToDAGISel::IsFoldableBy(SDNode *N, SDNode *U) {
+bool X86DAGToDAGISel::CanBeFoldedBy(SDNode *N, SDNode *U) {
   // Is it already folded by SelectAddr / SelectLEAAddr?
   if (isUnfoldable(N))
     return false;
@@ -711,7 +711,7 @@
   if (N.getOpcode() == ISD::LOAD &&
       N.hasOneUse() &&
       !CodeGenMap.count(N.getValue(0)) &&
-      !IsFoldableBy(N.Val, P.Val))
+      !CanBeFoldedBy(N.Val, P.Val))
     return SelectAddr(N.getOperand(1), Base, Scale, Index, Disp);
   return false;
 }






More information about the llvm-commits mailing list