mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Adjust loop size estimate for full unrolling;
GEP's don't usually become instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69631 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b306e38a2e
commit
23300aa3e3
@ -89,6 +89,8 @@ static unsigned ApproximateLoopSize(const Loop *L) {
|
||||
// Ignore instructions only used by the loop terminator.
|
||||
} else if (isa<DbgInfoIntrinsic>(I)) {
|
||||
// Ignore debug instructions
|
||||
} else if (isa<GetElementPtrInst>(I) && I->hasOneUse()) {
|
||||
// Ignore GEP as they generally are subsumed into a load or store.
|
||||
} else if (isa<CallInst>(I)) {
|
||||
// Estimate size overhead introduced by call instructions which
|
||||
// is higher than other instructions. Here 3 and 10 are magic
|
||||
|
Loading…
Reference in New Issue
Block a user