Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
279aa6eb
Commit
279aa6eb
authored
22 years ago
by
Chris Lattner
Browse files
Options
Downloads
Patches
Plain Diff
New testcase
llvm-svn: 2705
parent
c839a257
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/test/Regression/Transforms/SCCP/2002-05-21-InvalidSimplify.ll
+39
-0
39 additions, 0 deletions
.../Regression/Transforms/SCCP/2002-05-21-InvalidSimplify.ll
with
39 additions
and
0 deletions
llvm/test/Regression/Transforms/SCCP/2002-05-21-InvalidSimplify.ll
0 → 100644
+
39
−
0
View file @
279aa6eb
; This test shows SCCP "proving" that the loop (from bb6 to 14) loops infinitely
; this is in fact NOT the case, so the return should still be alive in the code
; after sccp and CFG simplification have been performed.
;
; RUN: as < %s | opt -sccp -simplifycfg | dis | grep ret
void
"old_main"
()
{
bb3:
;[#uses=1]
br
label
%bb6
bb6:
;[#uses=3]
%reg403
=
phi
int
[
%reg155
,
%bb14
],
[
0
,
%bb3
]
; <int> [#uses=2]
%reg155
=
add
int
%reg403
,
1
; <int> [#uses=3]
br
label
%bb11
bb11:
%reg407
=
phi
int
[
%reg408
,
%bb11
],
[
0
,
%bb6
]
; <int> [#uses=2]
%reg408
=
add
int
%reg407
,
1
; <int> [#uses=2]
%cond550
=
setle
int
%reg407
,
1
; <bool> [#uses=1]
br
bool
%cond550
,
label
%bb11
,
label
%bb12
bb12:
;[#uses=2]
br
label
%bb13
bb13:
;[#uses=3]
%reg409
=
phi
int
[
%reg410
,
%bb13
],
[
0
,
%bb12
]
; <int> [#uses=1]
%reg410
=
add
int
%reg409
,
1
; <int> [#uses=2]
%cond552
=
setle
int
%reg410
,
2
; <bool> [#uses=1]
br
bool
%cond552
,
label
%bb13
,
label
%bb14
bb14:
;[#uses=2]
%cond553
=
setle
int
%reg155
,
31
; <bool> [#uses=1]
br
bool
%cond553
,
label
%bb6
,
label
%bb15
bb15:
;[#uses=1]
ret
void
}
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