mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Avoid finding loop back edges when we are not splitting critical edges in
CodeGenPrepare (which is the default behavior). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122801 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
70ecc97550
commit
95bb00414e
@ -119,7 +119,9 @@ bool CodeGenPrepare::runOnFunction(Function &F) {
|
|||||||
// unconditional branch.
|
// unconditional branch.
|
||||||
EverMadeChange |= EliminateMostlyEmptyBlocks(F);
|
EverMadeChange |= EliminateMostlyEmptyBlocks(F);
|
||||||
|
|
||||||
// Now find loop back edges.
|
// Now find loop back edges, but only if they are being used to decide which
|
||||||
|
// critical edges to split.
|
||||||
|
if (CriticalEdgeSplit)
|
||||||
findLoopBackEdges(F);
|
findLoopBackEdges(F);
|
||||||
|
|
||||||
bool MadeChange = true;
|
bool MadeChange = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user