[X86] Tag MORESTACK instructions as ret scheduler class

llvm-svn: 320296
This commit is contained in:
Simon Pilgrim 2017-12-10 10:08:21 +00:00
parent 253562eb81
commit 1a030016a6
1 changed files with 3 additions and 3 deletions

View 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>;
}
//===----------------------------------------------------------------------===//