diff options
author | Renato Golin <rengolin@systemcall.org> | 2013-01-15 15:22:45 +0000 |
---|---|---|
committer | Renato Golin <rengolin@systemcall.org> | 2013-01-15 15:22:45 +0000 |
commit | 51c25b0818d70569a01ed0e4f574e0d4e3ec6b8b (patch) | |
tree | 0ddd2e91c30ccc6df06863209a205b88aa6e946a /llvm/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll | |
parent | 7194527d9f5f3c17a51484a7d6f5001ad4280ba7 (diff) | |
download | bcm5719-llvm-51c25b0818d70569a01ed0e4f574e0d4e3ec6b8b.tar.gz bcm5719-llvm-51c25b0818d70569a01ed0e4f574e0d4e3ec6b8b.zip |
Pattern-matched variables in post-inc-icmpzero.ll
Test was failing for clang-native-arm-cortex-a9 build-bot configuration.
The reason for the failure was the test was using hardcoded names.
The attached patch fixes this failure by replacing the hard-coded variables
names with pattern-matched variable names.
Patch by Manish Verma, ARM
llvm-svn: 172534
Diffstat (limited to 'llvm/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll')
-rw-r--r-- | llvm/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll b/llvm/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll index 9e02d92a6f4..449dc16d50a 100644 --- a/llvm/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll +++ b/llvm/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll @@ -4,12 +4,12 @@ ; LSR should properly handle the post-inc offset when folding the ; non-IV operand of an icmp into the IV. -; CHECK: %3 = sub i64 %sub.ptr.lhs.cast, %sub.ptr.rhs.cast -; CHECK: %4 = lshr i64 %3, 1 -; CHECK: %5 = mul i64 %4, 2 +; CHECK: [[r1:%[a-z0-9]+]] = sub i64 %sub.ptr.lhs.cast, %sub.ptr.rhs.cast +; CHECK: [[r2:%[a-z0-9]+]] = lshr i64 [[r1]], 1 +; CHECK: [[r3:%[a-z0-9]+]] = mul i64 [[r2]], 2 ; CHECK: br label %for.body ; CHECK: for.body: -; CHECK: %lsr.iv2 = phi i64 [ %lsr.iv.next, %for.body ], [ %5, %for.body.lr.ph ] +; CHECK: %lsr.iv2 = phi i64 [ %lsr.iv.next, %for.body ], [ [[r3]], %for.body.lr.ph ] ; CHECK: %lsr.iv.next = add i64 %lsr.iv2, -2 ; CHECK: %lsr.iv.next3 = inttoptr i64 %lsr.iv.next to i16* ; CHECK: %cmp27 = icmp eq i16* %lsr.iv.next3, null |