llvm.org GIT mirror llvm / dba9573
Remove redundant -enable-iv-rewrite=false flags from test cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153255 91177308-0d34-0410-b5e6-96231b3b80d8 Andrew Trick 8 years ago
11 changed file(s) with 8 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
None ; RUN: opt < %s -indvars -enable-iv-rewrite=false -S | FileCheck %s
0 ; RUN: opt < %s -indvars -S | FileCheck %s
11 ; Test WidenIV::GetExtendedOperandRecurrence.
22 ; add219 should be extended to i64 because it is nsw, even though its
33 ; sext cannot be hoisted outside the loop.
None ; RUN: opt < %s -indvars -S -enable-iv-rewrite=false "-default-data-layout=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-n8:16:32:64" | FileCheck %s
1 ; RUN: opt < %s -indvars -S -enable-iv-rewrite=true "-default-data-layout=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-n8:16:32:64" | FileCheck %s
2 ; RUN: opt < %s -indvars -S -enable-iv-rewrite=false "-default-data-layout=e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32" | FileCheck %s
3 ; RUN: opt < %s -indvars -S -enable-iv-rewrite=true "-default-data-layout=e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32" | FileCheck %s
0 ; RUN: opt < %s -indvars -S "-default-data-layout=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-n8:16:32:64" | FileCheck %s
1 ; RUN: opt < %s -indvars -S "-default-data-layout=e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32" | FileCheck %s
42 ;
53 ; PR11279: Assertion !IVLimit->getType()->isPointerTy()
64 ;
0 ; RUN: opt < %s -indvars -S | FileCheck %s
1 ; RUN: opt < %s -indvars -enable-iv-rewrite=false -S | FileCheck %s
21 ;
32 ; PR1301
43
None ; RUN: opt < %s -indvars -enable-iv-rewrite=false -S | FileCheck %s
0 ; RUN: opt < %s -indvars -S | FileCheck %s
11
22 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-n8:16:32:64"
33
None ; RUN: opt < %s -indvars -enable-iv-rewrite=false -S | FileCheck %s
0 ; RUN: opt < %s -indvars -S | FileCheck %s
11
22 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-n32:64"
33
0 ; RUN: opt < %s -indvars -S | FileCheck %s
1 ; RUN: opt < %s -indvars -enable-iv-rewrite=false -S | FileCheck %s
21 ; CHECK-NOT: and
32 ; CHECK-NOT: zext
43
None ; RUN: opt < %s -indvars -enable-iv-rewrite=false -S | FileCheck %s
0 ; RUN: opt < %s -indvars -S | FileCheck %s
11 ;
22 ; Make sure that indvars can perform LFTR without a canonical IV.
33
None ; RUN: opt < %s -indvars -enable-iv-rewrite=false -S | FileCheck %s
0 ; RUN: opt < %s -indvars -S | FileCheck %s
11 ;
22 ; Make sure that indvars isn't inserting canonical IVs.
33 ; This is kinda hard to do until linear function test replacement is removed.
0 ; RUN: opt < %s -indvars -S | FileCheck %s
1 ; RUN: opt < %s -indvars -enable-iv-rewrite=false -S | FileCheck %s
21
32 ; Indvars should insert a 64-bit induction variable to eliminate the
43 ; sext for the addressing, however it shouldn't eliminate the sext
0 ; RUN: opt < %s -indvars -instcombine -S | FileCheck %s
1 ; RUN: opt < %s -indvars -enable-iv-rewrite=false -instcombine -S | FileCheck %s
21 ;
32 ; Test that -indvars can reduce variable stride IVs. If it can reduce variable
43 ; stride iv's, it will make %iv. and %m.0.0 isomorphic to each other without
None ; RUN: opt -S < %s -loop-unroll -unroll-count=4 -enable-iv-rewrite=false | FileCheck %s
0 ; RUN: opt -S < %s -loop-unroll -unroll-count=4 | FileCheck %s
11 ;
22 ; Test induction variable simplify after loop unrolling. It should
33 ; expose nice opportunities for GVN.