Rename PPC MTCTRse to MTCTRloop
As the pairing of this instruction form with the bdnz/bdz branches is now enforced by the verification pass, make it clear from the name that these are used only for counter-based loops. No functionality change intended. llvm-svn: 182296
This commit is contained in:
parent
8ca3884147
commit
0859ef29d5
@ -627,7 +627,7 @@ check_block:
|
||||
CheckPreds = true;
|
||||
for (MachineBasicBlock::iterator IE = MBB->begin();; --I) {
|
||||
unsigned Opc = I->getOpcode();
|
||||
if (Opc == PPC::MTCTRse || Opc == PPC::MTCTR8se) {
|
||||
if (Opc == PPC::MTCTRloop || Opc == PPC::MTCTR8loop) {
|
||||
CheckPreds = false;
|
||||
break;
|
||||
}
|
||||
|
||||
@ -295,9 +295,9 @@ def MTCTR8 : XFXForm_7_ext<31, 467, 9, (outs), (ins g8rc:$rS),
|
||||
}
|
||||
let hasSideEffects = 1, isCodeGenOnly = 1, Defs = [CTR8] in {
|
||||
let Pattern = [(int_ppc_mtctr i64:$rS)] in
|
||||
def MTCTR8se : XFXForm_7_ext<31, 467, 9, (outs), (ins g8rc:$rS),
|
||||
"mtctr $rS", SprMTSPR>,
|
||||
PPC970_DGroup_First, PPC970_Unit_FXU;
|
||||
def MTCTR8loop : XFXForm_7_ext<31, 467, 9, (outs), (ins g8rc:$rS),
|
||||
"mtctr $rS", SprMTSPR>,
|
||||
PPC970_DGroup_First, PPC970_Unit_FXU;
|
||||
}
|
||||
|
||||
let Pattern = [(set i64:$rT, readcyclecounter)] in
|
||||
|
||||
@ -1704,9 +1704,9 @@ def MTCTR : XFXForm_7_ext<31, 467, 9, (outs), (ins gprc:$rS),
|
||||
}
|
||||
let hasSideEffects = 1, isCodeGenOnly = 1, Defs = [CTR] in {
|
||||
let Pattern = [(int_ppc_mtctr i32:$rS)] in
|
||||
def MTCTRse : XFXForm_7_ext<31, 467, 9, (outs), (ins gprc:$rS),
|
||||
"mtctr $rS", SprMTSPR>,
|
||||
PPC970_DGroup_First, PPC970_Unit_FXU;
|
||||
def MTCTRloop : XFXForm_7_ext<31, 467, 9, (outs), (ins gprc:$rS),
|
||||
"mtctr $rS", SprMTSPR>,
|
||||
PPC970_DGroup_First, PPC970_Unit_FXU;
|
||||
}
|
||||
|
||||
let Defs = [LR] in {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user