mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-15 16:07:49 +00:00
Add the CallInst optimizations that don't involve expanding inline assembly to
OptimizeInst() so that they can be used on a worklist instruction. llvm-svn: 122945
This commit is contained in:
parent
314d16039a
commit
246056cbb7
@ -1014,6 +1014,13 @@ bool CodeGenPrepare::OptimizeInst(Instruction *I) {
|
||||
MadeChange = true;
|
||||
OptimizeInst(NC);
|
||||
}
|
||||
} else if (CallInst *CI = dyn_cast<CallInst>(I)) {
|
||||
if (TLI && isa<InlineAsm>(CI->getCalledValue())) {
|
||||
// Sink address computing for memory operands into the block.
|
||||
MadeChange |= OptimizeInlineAsmInst(I, &(*CI), SunkAddrs);
|
||||
} else {
|
||||
MadeChange |= OptimizeCallInst(CI);
|
||||
}
|
||||
}
|
||||
|
||||
return MadeChange;
|
||||
|
Loading…
x
Reference in New Issue
Block a user