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
250eff20
Commit
250eff20
authored
18 years ago
by
Chris Lattner
Browse files
Options
Downloads
Patches
Plain Diff
Add a workaround for PR962, disabling the more aggressive form of this
transformation. This speeds up a C++ app 2.25x. llvm-svn: 31113
parent
aa1c6147
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/lib/Transforms/Scalar/TailRecursionElimination.cpp
+8
-0
8 additions, 0 deletions
llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
with
8 additions
and
0 deletions
llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
+
8
−
0
View file @
250eff20
...
...
@@ -140,6 +140,14 @@ bool TailCallElim::runOnFunction(Function &F) {
FunctionContainsEscapingAllocas
|=
CheckForEscapingAllocas
(
BB
,
CannotTCETailMarkedCall
);
}
/// FIXME: The code generator produces really bad code when an 'escaping
/// alloca' is changed from being a static alloca to being a dynamic alloca.
/// Until this is resolved, disable this transformation if that would ever
/// happen. This bug is PR962.
if
(
FunctionContainsEscapingAllocas
)
return
false
;
// Second pass, change any tail calls to loops.
for
(
Function
::
iterator
BB
=
F
.
begin
(),
E
=
F
.
end
();
BB
!=
E
;
++
BB
)
...
...
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