Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
llvm-epi
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Roger Ferrer
llvm-epi
Commits
eb5bb1bf
Commit
eb5bb1bf
authored
15 years ago
by
Chris Lattner
Browse files
Options
Downloads
Patches
Plain Diff
merge two tests.
llvm-svn: 90691
parent
2b3843df
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
llvm/test/Transforms/GVN/rle-dominated.ll
+0
-20
0 additions, 20 deletions
llvm/test/Transforms/GVN/rle-dominated.ll
llvm/test/Transforms/GVN/rle.ll
+25
-0
25 additions, 0 deletions
llvm/test/Transforms/GVN/rle.ll
with
25 additions
and
20 deletions
llvm/test/Transforms/GVN/rle-dominated.ll
deleted
100644 → 0
+
0
−
20
View file @
2b3843df
; RUN: opt < %s -gvn -S | grep load | count 2
define
i32
@main
(
i32
**
%p
)
{
block1:
%z
=
load
i32
**
%p
br
i1
true
,
label
%block2
,
label
%block3
block2:
%a
=
load
i32
**
%p
br
label
%block4
block3:
%b
=
load
i32
**
%p
br
label
%block4
block4:
%c
=
load
i32
**
%p
%d
=
load
i32
*
%c
ret
i32
%d
}
This diff is collapsed.
Click to expand it.
llvm/test/Transforms/GVN/rle.ll
+
25
−
0
View file @
eb5bb1bf
...
...
@@ -279,6 +279,31 @@ Cont:
; CHECK: ret i8 %A
}
define
i32
@chained_load
(
i32
**
%p
)
{
block1:
%z
=
load
i32
**
%p
br
i1
true
,
label
%block2
,
label
%block3
block2:
%a
=
load
i32
**
%p
br
label
%block4
block3:
%b
=
load
i32
**
%p
br
label
%block4
block4:
%c
=
load
i32
**
%p
%d
=
load
i32
*
%c
ret
i32
%d
; CHECK: @chained_load
; CHECK: %z = load i32** %p
; CHECK-NOT: load
; CHECK: %d = load i32* %z
; CHECK-NEXT: ret i32 %d
}
declare
i1
@cond
()
readonly
declare
i1
@cond2
()
readonly
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment