[llvm] 3a584c7 - [LoopRotate] Make test more robust (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 2 07:59:36 PST 2023
Author: Nikita Popov
Date: 2023-01-02T16:58:57+01:00
New Revision: 3a584c78d84a812e5a6e6fcc441387c9b08d3a8a
URL: https://github.com/llvm/llvm-project/commit/3a584c78d84a812e5a6e6fcc441387c9b08d3a8a
DIFF: https://github.com/llvm/llvm-project/commit/3a584c78d84a812e5a6e6fcc441387c9b08d3a8a.diff
LOG: [LoopRotate] Make test more robust (NFC)
Use a non-zero GEP index, so it does not get dropped during opaque
pointer conversion.
Added:
Modified:
llvm/test/Transforms/LoopRotate/pr22337.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/LoopRotate/pr22337.ll b/llvm/test/Transforms/LoopRotate/pr22337.ll
index 9c76a01fcab5..13b782e3b872 100644
--- a/llvm/test/Transforms/LoopRotate/pr22337.ll
+++ b/llvm/test/Transforms/LoopRotate/pr22337.ll
@@ -5,7 +5,7 @@
define void @f() {
; CHECK-LABEL: define void @f(
-; CHECK: getelementptr i8, i8* @a, i32 0
+; CHECK: getelementptr i8, i8* @a, i32 1
entry:
br label %for.preheader
@@ -16,7 +16,7 @@ for.body:
br i1 undef, label %if.end, label %if.then8
if.end:
- %arrayidx = getelementptr i8, i8* @a, i32 0
+ %arrayidx = getelementptr i8, i8* @a, i32 1
br label %for.preheader
if.then8:
More information about the llvm-commits
mailing list