diff options
Diffstat (limited to 'test/Transforms/IRCE/decrementing-loop.ll')
-rw-r--r-- | test/Transforms/IRCE/decrementing-loop.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Transforms/IRCE/decrementing-loop.ll b/test/Transforms/IRCE/decrementing-loop.ll index 877a2c2..6ff3e76 100644 --- a/test/Transforms/IRCE/decrementing-loop.ll +++ b/test/Transforms/IRCE/decrementing-loop.ll @@ -2,7 +2,7 @@ define void @decrementing_loop(i32 *%arr, i32 *%a_len_ptr, i32 %n) { entry: - %len = load i32* %a_len_ptr, !range !0 + %len = load i32, i32* %a_len_ptr, !range !0 %first.itr.check = icmp sgt i32 %n, 0 %start = sub i32 %n, 1 br i1 %first.itr.check, label %loop, label %exit @@ -16,7 +16,7 @@ define void @decrementing_loop(i32 *%arr, i32 *%a_len_ptr, i32 %n) { br i1 %abc, label %in.bounds, label %out.of.bounds, !prof !1 in.bounds: - %addr = getelementptr i32* %arr, i32 %idx + %addr = getelementptr i32, i32* %arr, i32 %idx store i32 0, i32* %addr %next = icmp sgt i32 %idx.dec, -1 br i1 %next, label %loop, label %exit |