mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
fix typos; NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240592 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -134,8 +134,7 @@ static bool iterativelySimplifyCFG(Function &F, const TargetTransformInfo &TTI,
|
|||||||
while (LocalChange) {
|
while (LocalChange) {
|
||||||
LocalChange = false;
|
LocalChange = false;
|
||||||
|
|
||||||
// Loop over all of the basic blocks and remove them if they are unneeded...
|
// Loop over all of the basic blocks and remove them if they are unneeded.
|
||||||
//
|
|
||||||
for (Function::iterator BBIt = F.begin(); BBIt != F.end(); ) {
|
for (Function::iterator BBIt = F.begin(); BBIt != F.end(); ) {
|
||||||
if (SimplifyCFG(BBIt++, TTI, BonusInstThreshold, AC)) {
|
if (SimplifyCFG(BBIt++, TTI, BonusInstThreshold, AC)) {
|
||||||
LocalChange = true;
|
LocalChange = true;
|
||||||
@@ -159,7 +158,7 @@ static bool simplifyFunctionCFG(Function &F, const TargetTransformInfo &TTI,
|
|||||||
// iterativelySimplifyCFG can (rarely) make some loops dead. If this happens,
|
// iterativelySimplifyCFG can (rarely) make some loops dead. If this happens,
|
||||||
// removeUnreachableBlocks is needed to nuke them, which means we should
|
// removeUnreachableBlocks is needed to nuke them, which means we should
|
||||||
// iterate between the two optimizations. We structure the code like this to
|
// iterate between the two optimizations. We structure the code like this to
|
||||||
// avoid reruning iterativelySimplifyCFG if the second pass of
|
// avoid rerunning iterativelySimplifyCFG if the second pass of
|
||||||
// removeUnreachableBlocks doesn't do anything.
|
// removeUnreachableBlocks doesn't do anything.
|
||||||
if (!removeUnreachableBlocks(F))
|
if (!removeUnreachableBlocks(F))
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user