aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-02-23 23:20:35 +0000
committerDan Gohman <gohman@apple.com>2009-02-23 23:20:35 +0000
commit15cab2817b8f63fec0148609278bc2c1e05abb50 (patch)
tree24003b8481aa66fad2ca12e1118566706fbf0cae /test
parente9865945ad8286a007d8b8465703c5b242f94caa (diff)
downloadexternal_llvm-15cab2817b8f63fec0148609278bc2c1e05abb50.zip
external_llvm-15cab2817b8f63fec0148609278bc2c1e05abb50.tar.gz
external_llvm-15cab2817b8f63fec0148609278bc2c1e05abb50.tar.bz2
Back out the change in 64918 that used sign-extensions when promoting
trip counts that use signed comparisons. It's not obviously the best approach for preserving trip count information, and at any rate there isn't anything in the tree right now that makes use of that, so for now always using zero-extensions is preferable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/IndVarSimplify/preserve-signed-wrap.ll3
-rw-r--r--test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll4
-rw-r--r--test/Transforms/IndVarSimplify/signed-trip-count.ll3
3 files changed, 3 insertions, 7 deletions
diff --git a/test/Transforms/IndVarSimplify/preserve-signed-wrap.ll b/test/Transforms/IndVarSimplify/preserve-signed-wrap.ll
index 930721a..0a91ec8 100644
--- a/test/Transforms/IndVarSimplify/preserve-signed-wrap.ll
+++ b/test/Transforms/IndVarSimplify/preserve-signed-wrap.ll
@@ -1,6 +1,5 @@
; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t
-; RUN: grep sext %t | count 2
-; RUN: grep { = sext i32 %n to i64} %t
+; RUN: grep sext %t | count 1
; RUN: grep phi %t | count 1
; RUN: grep {phi i64} %t
diff --git a/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll b/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll
index 9588bd3..48c060c 100644
--- a/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll
+++ b/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll
@@ -1,7 +1,5 @@
; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t
-; RUN: grep sext %t | count 2
-; RUN: grep { = sext i16 %N to i64} %t
-; RUN: grep { = sext i32 %count to i64} %t
+; RUN: not grep sext %t
define i64 @test(i64* nocapture %first, i32 %count) nounwind readonly {
entry:
diff --git a/test/Transforms/IndVarSimplify/signed-trip-count.ll b/test/Transforms/IndVarSimplify/signed-trip-count.ll
index cea9f82..cd61d113 100644
--- a/test/Transforms/IndVarSimplify/signed-trip-count.ll
+++ b/test/Transforms/IndVarSimplify/signed-trip-count.ll
@@ -1,7 +1,6 @@
; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t
-; RUN: grep { = sext i32 %n} %t
+; RUN: not grep sext %t
; RUN: grep phi %t | count 1
-; RUN: not grep zext %t
define void @foo(i64* nocapture %x, i32 %n) nounwind {
entry: