Loading src/passes/reverseBasicInstructions.cpp +0 −3 Original line number Diff line number Diff line Loading @@ -585,8 +585,6 @@ public: auto* revTruePred = instBuilder.getBetweenOrPred(blockMap.lookup(trueSucc), currentRevBB); auto* revFalsePred = instBuilder.getBetweenOrPred(blockMap.lookup(falseSucc), currentRevBB); // TODO handle if predecessor has a between block instBuilder.setInsertPointPastPHI(currentRevBB); auto* PHI = instBuilder.CreatePHI(i1, 2, condition->getName(), condition); PHI->addIncoming(ConstantInt::getTrue(i1), revTruePred); Loading Loading @@ -760,7 +758,6 @@ void reverseBasicInstructions(ModuleBundle& mod) // outs() << fBundle.revFunction->getName() << '\n'; for (auto& origBB : reverse(*fBundle.origFunction)) { // TODO handle between block auto* revBB = fBundle.blockMap.lookup(&origBB); fBundle.instBuilder.setInsertPointPastPHI(revBB); Loading Loading
src/passes/reverseBasicInstructions.cpp +0 −3 Original line number Diff line number Diff line Loading @@ -585,8 +585,6 @@ public: auto* revTruePred = instBuilder.getBetweenOrPred(blockMap.lookup(trueSucc), currentRevBB); auto* revFalsePred = instBuilder.getBetweenOrPred(blockMap.lookup(falseSucc), currentRevBB); // TODO handle if predecessor has a between block instBuilder.setInsertPointPastPHI(currentRevBB); auto* PHI = instBuilder.CreatePHI(i1, 2, condition->getName(), condition); PHI->addIncoming(ConstantInt::getTrue(i1), revTruePred); Loading Loading @@ -760,7 +758,6 @@ void reverseBasicInstructions(ModuleBundle& mod) // outs() << fBundle.revFunction->getName() << '\n'; for (auto& origBB : reverse(*fBundle.origFunction)) { // TODO handle between block auto* revBB = fBundle.blockMap.lookup(&origBB); fBundle.instBuilder.setInsertPointPastPHI(revBB); Loading