projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e400059
)
Check for TLI so that -codegenprepare can be used from opt.
author
Cameron Zwarich
<zwarich@apple.com>
Thu, 24 Mar 2011 04:51:51 +0000
(
04:51
+0000)
committer
Cameron Zwarich
<zwarich@apple.com>
Thu, 24 Mar 2011 04:51:51 +0000
(
04:51
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128194
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/CodeGenPrepare.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/CodeGenPrepare.cpp
b/lib/Transforms/Scalar/CodeGenPrepare.cpp
index da29eb1ec95b54c689d281f17c8e5bdbbbbad3c4..604e791e27c64447aec3caf0d07049aae2b1bcdf 100644
(file)
--- a/
lib/Transforms/Scalar/CodeGenPrepare.cpp
+++ b/
lib/Transforms/Scalar/CodeGenPrepare.cpp
@@
-589,6
+589,9
@@
bool CodeGenPrepare::OptimizeCallInst(CallInst *CI) {
/// ret i32 %tmp2
///
bool CodeGenPrepare::DupRetToEnableTailCallOpts(ReturnInst *RI) {
+ if (!TLI)
+ return false;
+
Value *V = RI->getReturnValue();
if (!V)
return false;