mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
simplify
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109101 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
efdf039aec
commit
945f1ab0a5
@ -83,10 +83,9 @@ SpecializeFunction(Function* F,
|
||||
Value::use_iterator i = ii;
|
||||
++ii;
|
||||
User *U = *i;
|
||||
if (isa<CallInst>(U) || isa<InvokeInst>(U)) {
|
||||
CallSite CS(cast<Instruction>(U));
|
||||
CallSite CS(U);
|
||||
if (CS) {
|
||||
if (CS.getCalledFunction() == F) {
|
||||
|
||||
SmallVector<Value*, 6> args;
|
||||
// Assemble the non-specialized arguments for the updated callsite.
|
||||
// In the process, make sure that the specialized arguments are
|
||||
|
Loading…
x
Reference in New Issue
Block a user