From 15cab2817b8f63fec0148609278bc2c1e05abb50 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 23 Feb 2009 23:20:35 +0000 Subject: 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 --- test/Transforms/IndVarSimplify/signed-trip-count.ll | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/Transforms/IndVarSimplify/signed-trip-count.ll') 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: -- cgit v1.1