Don't attempt to simplify an non-affine IV expression if it can't
[oota-llvm.git] / test / Transforms / IndVarSimplify / promote-iv-to-eliminate-casts.ll
index 08b08f200ec41f1e555ede9ae5cc917bf38f8347..48c060c48d22138a1b6e6a1ca93788d5ebbfd311 100644 (file)
@@ -1,6 +1,5 @@
-; RUN: llvm-as < %s | opt -indvars | llvm-dis | not grep sext
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
+; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t
+; RUN: not grep sext %t
 
 define i64 @test(i64* nocapture %first, i32 %count) nounwind readonly {
 entry: