From e3b4c0e17698ea2ef13605b8d256c73b5abc38bb Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 9 Sep 2008 18:25:28 +0000 Subject: [PATCH] Mark IMPLICIT_DEF as being rematerializable and cheap-as-a-move. It's already special-cased and treated as rematerializable within LiveIntervals; this allows it to be handled by other passes such as TwoAddressInstrctionPass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55999 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Target.td | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Target/Target.td b/lib/Target/Target.td index 8cc348d1779..e07529d708e 100644 --- a/lib/Target/Target.td +++ b/lib/Target/Target.td @@ -390,6 +390,8 @@ def IMPLICIT_DEF : Instruction { let AsmString = ""; let Namespace = "TargetInstrInfo"; let neverHasSideEffects = 1; + let isReMaterializable = 1; + let isAsCheapAsAMove = 1; } def SUBREG_TO_REG : Instruction { let OutOperandList = (ops unknown:$dst); -- 2.34.1