mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Use pre-increment instead of post-increment when the result is not used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106542 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -107,12 +107,12 @@ CallGraphNode *SRETPromotion::PromoteReturn(CallGraphNode *CGN) {
|
||||
// Check if it is ok to perform this promotion.
|
||||
if (isSafeToUpdateAllCallers(F) == false) {
|
||||
DEBUG(dbgs() << "SretPromotion: Not all callers can be updated\n");
|
||||
NumRejectedSRETUses++;
|
||||
++NumRejectedSRETUses;
|
||||
return 0;
|
||||
}
|
||||
|
||||
DEBUG(dbgs() << "SretPromotion: sret argument will be promoted\n");
|
||||
NumSRET++;
|
||||
++NumSRET;
|
||||
// [1] Replace use of sret parameter
|
||||
AllocaInst *TheAlloca = new AllocaInst(STy, NULL, "mrv",
|
||||
F->getEntryBlock().begin());
|
||||
|
||||
Reference in New Issue
Block a user