llvm.org GIT mirror llvm / 2e825a5
IPRA: Run RegUsageInfoPropagate much later This was running immediately after isel, before isel pseudos were even expanded which is really unreasonable. Move this to before pre-reglloc passes in case some other pre-regalloc pass wants to use the updated regmask info. Fixes one of the reasons IPRA doesn't do anything on AMDGPU currently. Tests will be included with future patch after a few more are fixed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310875 91177308-0d34-0410-b5e6-96231b3b80d8 Matt Arsenault 2 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
778778 // Print the instruction selected machine code...
779779 printAndVerify("After Instruction Selection");
781 if (TM->Options.EnableIPRA)
782 addPass(createRegUsageInfoPropPass());
784781 // Expand pseudo-instructions emitted by ISel.
785782 addPass(&ExpandISelPseudosID);
792789 // to one another and simplify frame index references where possible.
793790 addPass(&LocalStackSlotAllocationID, false);
794791 }
793 if (TM->Options.EnableIPRA)
794 addPass(createRegUsageInfoPropPass());
796796 // Run pre-ra passes.
797797 addPreRegAlloc();