forked from OSchip/llvm-project
Reapply r139759. Disable IV rewriting by default. See PR10916.
llvm-svn: 139842
This commit is contained in:
parent
4e91164049
commit
74111ee07f
|
@ -60,7 +60,7 @@ STATISTIC(NumElimIV , "Number of congruent IVs eliminated");
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
cl::opt<bool> EnableIVRewrite(
|
cl::opt<bool> EnableIVRewrite(
|
||||||
"enable-iv-rewrite", cl::Hidden, cl::init(true),
|
"enable-iv-rewrite", cl::Hidden,
|
||||||
cl::desc("Enable canonical induction variable rewriting"));
|
cl::desc("Enable canonical induction variable rewriting"));
|
||||||
|
|
||||||
// Trip count verification can be enabled by default under NDEBUG if we
|
// Trip count verification can be enabled by default under NDEBUG if we
|
||||||
|
|
|
@ -87,6 +87,6 @@ exit:
|
||||||
ret void
|
ret void
|
||||||
|
|
||||||
; CHECK: @test5
|
; CHECK: @test5
|
||||||
; CHECK: icmp eq i32 {{.*}}, 10
|
; CHECK: icmp slt i32 {{.*}}, 0
|
||||||
; CHECK-NEXT: br i1
|
; CHECK-NEXT: br i1
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,7 @@ exit2:
|
||||||
; SCEV properly unrolls multi-exit loops.
|
; SCEV properly unrolls multi-exit loops.
|
||||||
;
|
;
|
||||||
; CHECK: @multiExit
|
; CHECK: @multiExit
|
||||||
; CHECK: getelementptr i32* %base, i64 10
|
; CHECK: getelementptr i32* %base, i32 10
|
||||||
; CHECK-NEXT: load i32*
|
; CHECK-NEXT: load i32*
|
||||||
; CHECK: br i1 false, label %l2.10, label %exit1
|
; CHECK: br i1 false, label %l2.10, label %exit1
|
||||||
; CHECK: l2.10:
|
; CHECK: l2.10:
|
||||||
|
|
Loading…
Reference in New Issue