mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
Part one of switching to using a more sane heuristic for determining if-conversion profitability.
Rather than having arbitrary cutoffs, actually try to cost model the conversion. For now, the constants are tuned to more or less match our existing behavior, but these will be changed to reflect realistic values as this work proceeds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114973 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -627,8 +627,7 @@ bb24: ; preds = %bb23
|
||||
; in a register, and it shouldn't require any reloads here.
|
||||
|
||||
; CHECK: @ %bb24
|
||||
; CHECK-NEXT: @ in Loop: Header=BB1_1 Depth=1
|
||||
; CHECK-NEXT: sub{{.*}} [[REGISTER:(r[0-9]+)|(lr)]], #1
|
||||
; CHECK: subs{{.*}} [[REGISTER:(r[0-9]+)|(lr)]], #1
|
||||
; CHECK-NEXT: bne.w
|
||||
|
||||
%92 = icmp eq i32 %tmp81, %indvar78 ; <i1> [#uses=1]
|
||||
|
||||
Reference in New Issue
Block a user