[llvm-commits] CVS: llvm/lib/Target/TargetLowering.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Feb 28 20:53:08 PST 2006
Changes in directory llvm/lib/Target:
TargetLowering.cpp updated: 1.41 -> 1.42
---
Log message:
Add interfaces for targets to provide target-specific dag combiner optimizations.
---
Diffs of the changes: (+8 -0)
TargetLowering.cpp | 8 ++++++++
1 files changed, 8 insertions(+)
Index: llvm/lib/Target/TargetLowering.cpp
diff -u llvm/lib/Target/TargetLowering.cpp:1.41 llvm/lib/Target/TargetLowering.cpp:1.42
--- llvm/lib/Target/TargetLowering.cpp:1.41 Sun Feb 26 19:00:42 2006
+++ llvm/lib/Target/TargetLowering.cpp Tue Feb 28 22:52:55 2006
@@ -30,6 +30,8 @@
ShiftAmountTy = SetCCResultTy = PointerTy = getValueType(TD.getIntPtrType());
ShiftAmtHandling = Undefined;
memset(RegClassForVT, 0,MVT::LAST_VALUETYPE*sizeof(TargetRegisterClass*));
+ memset(TargetDAGCombineArray, 0,
+ sizeof(TargetDAGCombineArray)/sizeof(TargetDAGCombineArray[0]));
maxStoresPerMemset = maxStoresPerMemcpy = maxStoresPerMemmove = 8;
allowUnalignedMemoryAccesses = false;
UseUnderscoreSetJmpLongJmp = false;
@@ -916,6 +918,12 @@
KnownOne = 0;
}
+SDOperand TargetLowering::
+PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const {
+ // Default implementation: no optimization.
+ return SDOperand();
+}
+
//===----------------------------------------------------------------------===//
// Inline Assembler Implementation Methods
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list