mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-29 13:32:33 +00:00
Don't analyze block if it's not considered for ifcvt anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134856 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c0ca67fbd3
commit
2b33f4cbad
@ -751,8 +751,9 @@ IfConverter::BBInfo &IfConverter::AnalyzeBlock(MachineBasicBlock *BB,
|
|||||||
|
|
||||||
ScanInstructions(BBI);
|
ScanInstructions(BBI);
|
||||||
|
|
||||||
// Unanalyzable or ends with fallthrough or unconditional branch.
|
// Unanalyzable or ends with fallthrough or unconditional branch, or if is not
|
||||||
if (!BBI.IsBrAnalyzable || BBI.BrCond.empty()) {
|
// considered for ifcvt anymore.
|
||||||
|
if (!BBI.IsBrAnalyzable || BBI.BrCond.empty() || BBI.IsDone) {
|
||||||
BBI.IsBeingAnalyzed = false;
|
BBI.IsBeingAnalyzed = false;
|
||||||
BBI.IsAnalyzed = true;
|
BBI.IsAnalyzed = true;
|
||||||
return BBI;
|
return BBI;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user