mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-06 11:19:09 +00:00
Make this code more efficient.
llvm-svn: 40861
This commit is contained in:
parent
bf64e878e6
commit
02ac5cfce9
@ -205,11 +205,11 @@ bool LowerGC::runOnFunction(Function &F) {
|
||||
// conversion from Use* to Value*. The conversion
|
||||
// from Use to Value * is not useful because the
|
||||
// memory for Value * won't be contiguous.
|
||||
SmallVector<Value *, 2> Args;
|
||||
Args.push_back(CI->getOperand(1));
|
||||
Args.push_back(CI->getOperand(2));
|
||||
CallInst *NC = new CallInst(GCRead, Args.begin(),
|
||||
Args.end(),
|
||||
Value* Args[] = {
|
||||
CI->getOperand(1),
|
||||
CI->getOperand(2)
|
||||
};
|
||||
CallInst *NC = new CallInst(GCRead, Args, Args + 2,
|
||||
CI->getName(), CI);
|
||||
// These functions only deal with ptr type results so BitCast
|
||||
// is the correct kind of cast (no-op cast).
|
||||
|
Loading…
Reference in New Issue
Block a user