projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
402476e
)
[LoopRotate] Make test more robust (NFC)
author
Nikita Popov
<npopov@redhat.com>
Mon, 2 Jan 2023 15:58:57 +0000
(16:58 +0100)
committer
Nikita Popov
<npopov@redhat.com>
Mon, 2 Jan 2023 15:58:57 +0000
(16:58 +0100)
Use a non-zero GEP index, so it does not get dropped during opaque
pointer conversion.
llvm/test/Transforms/LoopRotate/pr22337.ll
patch
|
blob
|
history
diff --git
a/llvm/test/Transforms/LoopRotate/pr22337.ll
b/llvm/test/Transforms/LoopRotate/pr22337.ll
index
9c76a01
..
13b782e
100644
(file)
--- 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: