mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-02 09:33:59 +00:00
Make fast-isel miss counting in -stats and -fast-isel-verbose take terminators into account; since there are many fewer isel misses with recent changes, misses caused by terminators are more significant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131502 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1b32896bd2
commit
9c4dae6b0b
@ -972,9 +972,14 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise, give up on FastISel for the rest of the block.
|
if (isa<TerminatorInst>(Inst) && !isa<BranchInst>(Inst)) {
|
||||||
// For now, be a little lenient about non-branch terminators.
|
// Don't abort, and use a different message for terminator misses.
|
||||||
if (!isa<TerminatorInst>(Inst) || isa<BranchInst>(Inst)) {
|
++NumFastIselFailures;
|
||||||
|
if (EnableFastISelVerbose || EnableFastISelAbort) {
|
||||||
|
dbgs() << "FastISel missed terminator: ";
|
||||||
|
Inst->dump();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
++NumFastIselFailures;
|
++NumFastIselFailures;
|
||||||
if (EnableFastISelVerbose || EnableFastISelAbort) {
|
if (EnableFastISelVerbose || EnableFastISelAbort) {
|
||||||
dbgs() << "FastISel miss: ";
|
dbgs() << "FastISel miss: ";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user