mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Instead of using isDummyPhiInstr, we just compare the opcode with V9::PHI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15906 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1444,8 +1444,7 @@ void ModuloSchedulingPass::removePHIs(const MachineBasicBlock *origBB, std::vect
|
||||
//Start with the kernel and for each phi insert a copy for the phi def and for each arg
|
||||
for(MachineBasicBlock::iterator I = kernelBB->begin(), E = kernelBB->end(); I != E; ++I) {
|
||||
//Get op code and check if its a phi
|
||||
MachineOpCode OC = I->getOpcode();
|
||||
if(TMI->isDummyPhiInstr(OC)) {
|
||||
if(I->getOpcode() == V9::PHI) {
|
||||
Instruction *tmp = 0;
|
||||
for(unsigned i = 0; i < I->getNumOperands(); ++i) {
|
||||
//Get Operand
|
||||
@@ -1491,8 +1490,7 @@ void ModuloSchedulingPass::removePHIs(const MachineBasicBlock *origBB, std::vect
|
||||
for(std::vector<MachineBasicBlock*>::iterator MB = epilogues.begin(), ME = epilogues.end(); MB != ME; ++MB) {
|
||||
for(MachineBasicBlock::iterator I = (*MB)->begin(), E = (*MB)->end(); I != E; ++I) {
|
||||
//Get op code and check if its a phi
|
||||
MachineOpCode OC = I->getOpcode();
|
||||
if(TMI->isDummyPhiInstr(OC)) {
|
||||
if(I->getOpcode() == V9::PHI) {
|
||||
Instruction *tmp = 0;
|
||||
for(unsigned i = 0; i < I->getNumOperands(); ++i) {
|
||||
//Get Operand
|
||||
|
Reference in New Issue
Block a user