diff options
author | Dale Johannesen <dalej@apple.com> | 2009-05-11 17:15:42 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-05-11 17:15:42 +0000 |
commit | c1acc3f764804d25f70d88f937ef9c460143e0f1 (patch) | |
tree | 149c9fdd6325f0a2ff25c32610c4de1e33bde324 /test/CodeGen/X86/masked-iv-safe.ll | |
parent | b9cfbd94abb23ec8646b9b10aa4ac3d1cbf4461e (diff) | |
download | external_llvm-c1acc3f764804d25f70d88f937ef9c460143e0f1.zip external_llvm-c1acc3f764804d25f70d88f937ef9c460143e0f1.tar.gz external_llvm-c1acc3f764804d25f70d88f937ef9c460143e0f1.tar.bz2 |
Reverse a loop that is counting up to a maximum to
count down to 0 instead, under very restricted
circumstances. Adjust 4 testcases in which this
optimization fires.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71439 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/masked-iv-safe.ll')
-rw-r--r-- | test/CodeGen/X86/masked-iv-safe.ll | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/CodeGen/X86/masked-iv-safe.ll b/test/CodeGen/X86/masked-iv-safe.ll index 2ba3f83..e9b80a4 100644 --- a/test/CodeGen/X86/masked-iv-safe.ll +++ b/test/CodeGen/X86/masked-iv-safe.ll @@ -4,12 +4,13 @@ ; RUN: not grep sar %t ; RUN: not grep shl %t ; RUN: grep add %t | count 6 -; RUN: grep inc %t | count 4 -; RUN: grep dec %t | count 2 +; RUN: grep inc %t | count 2 +; RUN: grep dec %t | count 4 ; RUN: grep lea %t | count 2 ; Optimize away zext-inreg and sext-inreg on the loop induction ; variable using trip-count information. +; Also, the loop-reversal algorithm kicks in twice. define void @count_up(double* %d, i64 %n) nounwind { entry: |