mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
[SelectionDAG] Do not run the ISel process on already selected code.
Right now, this cannot happen, but with the fall back path of GlobalISel it will show up eventually. llvm-svn: 279877
This commit is contained in:
parent
947cfac2b5
commit
2cd9ce7522
@ -426,6 +426,10 @@ static void SplitCriticalSideEffectEdges(Function &Fn) {
|
||||
}
|
||||
|
||||
bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
|
||||
// If we already selected that function, we do not need to run SDISel.
|
||||
if (mf.getProperties().hasProperty(
|
||||
MachineFunctionProperties::Property::Selected))
|
||||
return false;
|
||||
// Do some sanity-checking on the command-line options.
|
||||
assert((!EnableFastISelVerbose || TM.Options.EnableFastISel) &&
|
||||
"-fast-isel-verbose requires -fast-isel");
|
||||
|
Loading…
Reference in New Issue
Block a user