diff options
author | Dan Gohman <gohman@apple.com> | 2007-06-26 00:48:07 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-06-26 00:48:07 +0000 |
commit | e8c1e428f2726db7abb153c743037f70ce59fcbd (patch) | |
tree | 79072e9179f66d651d722dc1b13651d95ee642bb /llvm/utils/TableGen/InstrInfoEmitter.cpp | |
parent | 02d1a7844ad30e99a060e7ed551acf68d652e25f (diff) | |
download | bcm5719-llvm-e8c1e428f2726db7abb153c743037f70ce59fcbd.tar.gz bcm5719-llvm-e8c1e428f2726db7abb153c743037f70ce59fcbd.zip |
Revert the earlier change that removed the M_REMATERIALIZABLE machine
instruction flag, and use the flag along with a virtual member function
hook for targets to override if there are instructions that are only
trivially rematerializable with specific operands (i.e. constant pool
loads).
llvm-svn: 37728
Diffstat (limited to 'llvm/utils/TableGen/InstrInfoEmitter.cpp')
-rw-r--r-- | llvm/utils/TableGen/InstrInfoEmitter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/InstrInfoEmitter.cpp b/llvm/utils/TableGen/InstrInfoEmitter.cpp index bf027dd29a4..af01e4cd75a 100644 --- a/llvm/utils/TableGen/InstrInfoEmitter.cpp +++ b/llvm/utils/TableGen/InstrInfoEmitter.cpp @@ -240,6 +240,7 @@ void InstrInfoEmitter::emitRecord(const CodeGenInstruction &Inst, unsigned Num, 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) |