mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
Check for TLI so that -codegenprepare can be used from opt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128194 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -589,6 +589,9 @@ bool CodeGenPrepare::OptimizeCallInst(CallInst *CI) {
|
|||||||
/// ret i32 %tmp2
|
/// ret i32 %tmp2
|
||||||
///
|
///
|
||||||
bool CodeGenPrepare::DupRetToEnableTailCallOpts(ReturnInst *RI) {
|
bool CodeGenPrepare::DupRetToEnableTailCallOpts(ReturnInst *RI) {
|
||||||
|
if (!TLI)
|
||||||
|
return false;
|
||||||
|
|
||||||
Value *V = RI->getReturnValue();
|
Value *V = RI->getReturnValue();
|
||||||
if (!V)
|
if (!V)
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user