mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
SimplifyCFG has a heuristics for out-of-order processors that decides when it is worthwhile to merge branches. It tries to estimate if the operands of the instruction that we want to hoist are ready. This commit marks function arguments as 'ready' because they require no calculation. This boosts libquantum and a few other workloads from the testsuite.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194346 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2096,7 +2096,7 @@ bool llvm::FoldBranchToCommonDest(BranchInst *BI) {
|
||||
for (Instruction::op_iterator OI = BonusInst->op_begin(),
|
||||
OE = BonusInst->op_end(); OI != OE; ++OI) {
|
||||
Value *V = *OI;
|
||||
if (!isa<Constant>(V))
|
||||
if (!isa<Constant>(V) && !isa<Argument>(V))
|
||||
UsedValues.insert(V);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user