Add test cases for PRE w/volatile loads
[oota-llvm.git] / test / Transforms / IndVarSimplify / phi-uses-value-multiple-times.ll
index 7119cbbc05c6e299a8f4a35c73c2a6e3d0ccbd0b..dc36b994825453c1ba388bdf9cdd7c9a07a0410b 100644 (file)
@@ -1,4 +1,9 @@
-; RUN: llvm-as < %s | opt -indvars
+; REQUIRES: asserts
+; RUN: opt < %s -indvars -disable-output -stats -info-output-file - | FileCheck %s
+; Check that IndVarSimplify is not creating unnecessary canonical IVs
+; that will never be used.
+; CHECK-NOT: indvars
+
 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"
 
 @ue = external global i64