diff options
author | Wei Mi <wmi@google.com> | 2015-08-25 16:43:47 +0000 |
---|---|---|
committer | Wei Mi <wmi@google.com> | 2015-08-25 16:43:47 +0000 |
commit | edae87d819c21c0051c045a94ae188f8547e897c (patch) | |
tree | 6b20077d21a914667ea34109814e3387b311f218 /llvm/test/Transforms/LoopVectorize/induction.ll | |
parent | 03dc4733859baed215f40ebee88a8a8d5e0f2860 (diff) | |
download | bcm5719-llvm-edae87d819c21c0051c045a94ae188f8547e897c.tar.gz bcm5719-llvm-edae87d819c21c0051c045a94ae188f8547e897c.zip |
The patch replace the overflow check in loop vectorization with the minimum loop iterations check.
The loop minimum iterations check below ensures the loop has enough trip count so the generated
vector loop will likely be executed, and it covers the overflow check.
Differential Revision: http://reviews.llvm.org/D12107.
llvm-svn: 245952
Diffstat (limited to 'llvm/test/Transforms/LoopVectorize/induction.ll')
-rw-r--r-- | llvm/test/Transforms/LoopVectorize/induction.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/LoopVectorize/induction.ll b/llvm/test/Transforms/LoopVectorize/induction.ll index 2fbb2de797a..48566ef92f7 100644 --- a/llvm/test/Transforms/LoopVectorize/induction.ll +++ b/llvm/test/Transforms/LoopVectorize/induction.ll @@ -113,8 +113,8 @@ define i32 @i16_loop() nounwind readnone ssp uwtable { ; condition and branch directly to the scalar loop. ; CHECK-LABEL: max_i32_backedgetaken -; CHECK: %backedge.overflow = icmp eq i32 -1, -1 -; CHECK: br i1 %backedge.overflow, label %scalar.ph, label %overflow.checked +; CHECK: %min.iters.check = icmp ult i32 0, 2 +; CHECK: br i1 %min.iters.check, label %scalar.ph, label %min.iters.checked ; CHECK: scalar.ph: ; CHECK: %bc.resume.val = phi i32 [ %resume.val, %middle.block ], [ 0, %0 ] |