mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +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);
|
||||
|
||||
// Unanalyzable or ends with fallthrough or unconditional branch.
|
||||
if (!BBI.IsBrAnalyzable || BBI.BrCond.empty()) {
|
||||
// Unanalyzable or ends with fallthrough or unconditional branch, or if is not
|
||||
// considered for ifcvt anymore.
|
||||
if (!BBI.IsBrAnalyzable || BBI.BrCond.empty() || BBI.IsDone) {
|
||||
BBI.IsBeingAnalyzed = false;
|
||||
BBI.IsAnalyzed = true;
|
||||
return BBI;
|
||||
|
Loading…
x
Reference in New Issue
Block a user