[llvm-commits] CVS: llvm/utils/TableGen/CodeGenInstruction.h CodeGenTarget.cpp InstrInfoEmitter.cpp

Dan Gohman djg at cray.com
Mon Jun 18 18:48:41 PDT 2007



Changes in directory llvm/utils/TableGen:

CodeGenInstruction.h updated: 1.29 -> 1.30
CodeGenTarget.cpp updated: 1.93 -> 1.94
InstrInfoEmitter.cpp updated: 1.61 -> 1.62
---
Log message:

Replace M_REMATERIALIZIBLE and the newly-added isOtherReMaterializableLoad
with a general target hook to identify rematerializable instructions. Some
instructions are only rematerializable with specific operands, such as loads
from constant pools, while others are always rematerializable. This hook
allows both to be identified as being rematerializable with the same
mechanism.


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

 CodeGenInstruction.h |    1 -
 CodeGenTarget.cpp    |    1 -
 InstrInfoEmitter.cpp |    1 -
 3 files changed, 3 deletions(-)


Index: llvm/utils/TableGen/CodeGenInstruction.h
diff -u llvm/utils/TableGen/CodeGenInstruction.h:1.29 llvm/utils/TableGen/CodeGenInstruction.h:1.30
--- llvm/utils/TableGen/CodeGenInstruction.h:1.29	Mon Jun 18 20:26:51 2007
+++ llvm/utils/TableGen/CodeGenInstruction.h	Mon Jun 18 20:48:05 2007
@@ -91,7 +91,6 @@
     bool isConvertibleToThreeAddress;
     bool isCommutable;
     bool isTerminator;
-    bool isReMaterializable;
     bool hasDelaySlot;
     bool usesCustomDAGSchedInserter;
     bool hasVariableNumberOfOperands;


Index: llvm/utils/TableGen/CodeGenTarget.cpp
diff -u llvm/utils/TableGen/CodeGenTarget.cpp:1.93 llvm/utils/TableGen/CodeGenTarget.cpp:1.94
--- llvm/utils/TableGen/CodeGenTarget.cpp:1.93	Mon Jun 18 20:26:51 2007
+++ llvm/utils/TableGen/CodeGenTarget.cpp	Mon Jun 18 20:48:05 2007
@@ -365,7 +365,6 @@
   isConvertibleToThreeAddress = R->getValueAsBit("isConvertibleToThreeAddress");
   isCommutable = R->getValueAsBit("isCommutable");
   isTerminator = R->getValueAsBit("isTerminator");
-  isReMaterializable = R->getValueAsBit("isReMaterializable");
   hasDelaySlot = R->getValueAsBit("hasDelaySlot");
   usesCustomDAGSchedInserter = R->getValueAsBit("usesCustomDAGSchedInserter");
   hasCtrlDep   = R->getValueAsBit("hasCtrlDep");


Index: llvm/utils/TableGen/InstrInfoEmitter.cpp
diff -u llvm/utils/TableGen/InstrInfoEmitter.cpp:1.61 llvm/utils/TableGen/InstrInfoEmitter.cpp:1.62
--- llvm/utils/TableGen/InstrInfoEmitter.cpp:1.61	Mon Jun 18 20:26:51 2007
+++ llvm/utils/TableGen/InstrInfoEmitter.cpp	Mon Jun 18 20:48:05 2007
@@ -240,7 +240,6 @@
   if (Inst.isConvertibleToThreeAddress) OS << "|M_CONVERTIBLE_TO_3_ADDR";
   if (Inst.isCommutable) OS << "|M_COMMUTABLE";
   if (Inst.isTerminator) OS << "|M_TERMINATOR_FLAG";
-  if (Inst.isReMaterializable) OS << "|M_REMATERIALIZIBLE";
   if (Inst.clobbersPred) OS << "|M_CLOBBERS_PRED";
   if (Inst.isNotDuplicable) OS << "|M_NOT_DUPLICABLE";
   if (Inst.usesCustomDAGSchedInserter)






More information about the llvm-commits mailing list