Add a flag to indicate that an instruction is as cheap (or cheaper) than a move
authorBill Wendling <isanbard@gmail.com>
Wed, 28 May 2008 22:54:52 +0000 (22:54 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 28 May 2008 22:54:52 +0000 (22:54 +0000)
commit8370d38adee63b3a4d87bfe81be4aacc55fe7cda
tree4689ca3c0b6ee971d3aef6ec8536642eefb377a8
parenta8db14796b22ba7798ef94fc831d56c8a11d4e2a
Add a flag to indicate that an instruction is as cheap (or cheaper) than a move
instruction to execute. This can be used for transformations (like two-address
conversion) to remat an instruction instead of generating a "move"
instruction. The idea is to decrease the live ranges and register pressure and
all that jazz.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51660 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetInstrDesc.h
lib/CodeGen/MachineInstr.cpp
lib/Target/Target.td
utils/TableGen/CodeGenInstruction.cpp
utils/TableGen/CodeGenInstruction.h
utils/TableGen/InstrInfoEmitter.cpp