mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Second attempt at PR12573:
Allow the "SplitCriticalEdge" function to split the edge to a landing pad. If the pass is *sure* that it thinks it knows what it's doing, then it may go ahead and specify that the landing pad can have its critical edge split. The loop unswitch pass is one of these passes. It will split the critical edges of all edges coming from a loop to a landing pad not within the loop. Doing so will retain important loop analysis information, such as loop simplify. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155817 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -687,8 +687,8 @@ void LoopUnswitch::EmitPreheaderBranchOnCondition(Value *LIC, Constant *Val,
|
||||
|
||||
// If either edge is critical, split it. This helps preserve LoopSimplify
|
||||
// form for enclosing loops.
|
||||
SplitCriticalEdge(BI, 0, this);
|
||||
SplitCriticalEdge(BI, 1, this);
|
||||
SplitCriticalEdge(BI, 0, this, false, false, true);
|
||||
SplitCriticalEdge(BI, 1, this, false, false, true);
|
||||
}
|
||||
|
||||
/// UnswitchTrivialCondition - Given a loop that has a trivial unswitchable
|
||||
|
Reference in New Issue
Block a user