forked from OSchip/llvm-project
Added CanBeDuplicated(). It returns true if an instruction can be safely duplicated (e.g. during ifcvt).
llvm-svn: 37605
This commit is contained in:
parent
a575a7dfda
commit
297d43be00
|
@ -415,6 +415,13 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
/// CanBeDuplicated - Returns true if the instruction can be duplicated
|
||||
/// without causing unforseenable side-effect (e.g. instructions with unique
|
||||
/// labels attached).
|
||||
virtual bool CanBeDuplicated(const MachineInstr *MI) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
/// isUnpredicatedTerminator - Returns true if the instruction is a
|
||||
/// terminator instruction that has not been predicated.
|
||||
virtual bool isUnpredicatedTerminator(const MachineInstr *MI) const;
|
||||
|
|
Loading…
Reference in New Issue