Disable hoisting MI to hotter basic blocks
In current Hoist() function of machine licm pass, it will not check the source and destination basic block frequencies that a instruction is hoisted from/to. There is a chance that instruction is hoisted from a cold to a hot basic block. In this patch, we add options to disable machine instruction hoisting if destination block is hotter. Differential Revision: https://reviews.llvm.org/D63676
Showing
- llvm/lib/CodeGen/MachineLICM.cpp 62 additions, 0 deletionsllvm/lib/CodeGen/MachineLICM.cpp
- llvm/test/CodeGen/PowerPC/DisableHoistingDueToBlockHotnessNoProfileData.mir 190 additions, 0 deletions...PowerPC/DisableHoistingDueToBlockHotnessNoProfileData.mir
- llvm/test/CodeGen/PowerPC/DisableHoistingDueToBlockHotnessProfileData.mir 237 additions, 0 deletions...n/PowerPC/DisableHoistingDueToBlockHotnessProfileData.mir
Loading
Please register or sign in to comment