Add MachineInstr::isTransient().
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 30 Jul 2012 18:34:14 +0000 (18:34 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 30 Jul 2012 18:34:14 +0000 (18:34 +0000)
commit3f63a589788995a724bc4587d022fe15ea8576ba
treec017ccce3ee57858e9607baf5adb76f32e7feac8
parenta1b2bf79796d8c44b1321a69a7236b85c33ef7ca
Add MachineInstr::isTransient().

This is a cleaned up version of the isFree() function in
MachineTraceMetrics.cpp.

Transient instructions are very unlikely to produce any code in the
final output. Either because they get eliminated by RegisterCoalescing,
or because they are pseudo-instructions like labels and debug values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160977 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/MachineTraceMetrics.cpp