]> granicus.if.org Git - llvm/commitdiff
[X86] Tag MORESTACK instructions as ret scheduler class
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 10 Dec 2017 10:08:21 +0000 (10:08 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 10 Dec 2017 10:08:21 +0000 (10:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320296 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrCompiler.td

index 95a18d3f0bf54ebde74823286d1bd9923abba82e..d70c8be6f3c82a41631775fee58c4f90cf6079d0 100644 (file)
@@ -257,15 +257,15 @@ let isPseudo = 1, SchedRW = [WriteSystem] in {
 // This is lowered into a RET instruction by MCInstLower.  We need
 // this so that we don't have to have a MachineBasicBlock which ends
 // with a RET and also has successors.
-let isPseudo = 1 in {
+let isPseudo = 1, SchedRW = [WriteJumpLd] in {
 def MORESTACK_RET: I<0, Pseudo, (outs), (ins),
-                          "", []>;
+                          "", [], IIC_RET>;
 
 // This instruction is lowered to a RET followed by a MOV.  The two
 // instructions are not generated on a higher level since then the
 // verifier sees a MachineBasicBlock ending with a non-terminator.
 def MORESTACK_RET_RESTORE_R10 : I<0, Pseudo, (outs), (ins),
-                                  "", []>;
+                                  "", [], IIC_RET>;
 }
 
 //===----------------------------------------------------------------------===//