summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/IRCE/decrementing-loop.ll
diff options
context:
space:
mode:
authorWei Mi <wmi@google.com>2016-02-03 17:05:12 +0000
committerWei Mi <wmi@google.com>2016-02-03 17:05:12 +0000
commited133978a0eed72b40f1a86c220445acb24f32f9 (patch)
treef2c6e1ad7942af2d652c4ba3b28f7e3749d942c6 /llvm/test/Transforms/IRCE/decrementing-loop.ll
parent38a36c4f1ca7a0a42ac6524a9f0a5a701f3bc88a (diff)
downloadbcm5719-llvm-ed133978a0eed72b40f1a86c220445acb24f32f9.tar.gz
bcm5719-llvm-ed133978a0eed72b40f1a86c220445acb24f32f9.zip
[SCEV] Try to reuse existing value during SCEV expansion
Current SCEV expansion will expand SCEV as a sequence of operations and doesn't utilize the value already existed. This will introduce redundent computation which may not be cleaned up throughly by following optimizations. This patch introduces an ExprValueMap which is a map from SCEV to the set of equal values with the same SCEV. When a SCEV is expanded, the set of values is checked and reused whenever possible before generating a sequence of operations. Differential Revision: http://reviews.llvm.org/D12090 llvm-svn: 259662
Diffstat (limited to 'llvm/test/Transforms/IRCE/decrementing-loop.ll')
-rw-r--r--llvm/test/Transforms/IRCE/decrementing-loop.ll1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/test/Transforms/IRCE/decrementing-loop.ll b/llvm/test/Transforms/IRCE/decrementing-loop.ll
index 6ff3e76c754..a3a03b182a5 100644
--- a/llvm/test/Transforms/IRCE/decrementing-loop.ll
+++ b/llvm/test/Transforms/IRCE/decrementing-loop.ll
@@ -28,7 +28,6 @@ define void @decrementing_loop(i32 *%arr, i32 *%a_len_ptr, i32 %n) {
ret void
; CHECK: loop.preheader:
-; CHECK: [[indvar_start:[^ ]+]] = add i32 %n, -1
; CHECK: [[not_len:[^ ]+]] = sub i32 -1, %len
; CHECK: [[not_n:[^ ]+]] = sub i32 -1, %n
; CHECK: [[not_len_hiclamp_cmp:[^ ]+]] = icmp sgt i32 [[not_len]], [[not_n]]
OpenPOWER on IntegriCloud