[llvm-commits] CVS: llvm/include/llvm/Target/TargetInstrInfo.h

Evan Cheng evan.cheng at apple.com
Thu May 11 18:58:38 PDT 2006



Changes in directory llvm/include/llvm/Target:

TargetInstrInfo.h updated: 1.85 -> 1.86
---
Log message:

Add capability to scheduler to commute nodes for profit. 
If a two-address code whose first operand has uses below, it should be commuted
when possible.


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

 TargetInstrInfo.h |    3 +++
 1 files changed, 3 insertions(+)


Index: llvm/include/llvm/Target/TargetInstrInfo.h
diff -u llvm/include/llvm/Target/TargetInstrInfo.h:1.85 llvm/include/llvm/Target/TargetInstrInfo.h:1.86
--- llvm/include/llvm/Target/TargetInstrInfo.h:1.85	Thu Apr 20 13:32:02 2006
+++ llvm/include/llvm/Target/TargetInstrInfo.h	Thu May 11 20:58:24 2006
@@ -165,6 +165,9 @@
   bool isTwoAddrInstr(MachineOpCode Opcode) const {
     return get(Opcode).Flags & M_2_ADDR_FLAG;
   }
+  bool isCommutableInstr(MachineOpCode Opcode) const {
+    return get(Opcode).Flags & M_COMMUTABLE;
+  }
   bool isTerminatorInstr(unsigned Opcode) const {
     return get(Opcode).Flags & M_TERMINATOR_FLAG;
   }






More information about the llvm-commits mailing list