1. Disable hoisting MI to hotter basic blocks (details)
Commit edab7dd426249bd40059b49b255ba9cc5b784753 by victorh
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:
The file was addedllvm/test/CodeGen/PowerPC/DisableHoistingDueToBlockHotnessProfileData.mir
The file was modifiedllvm/lib/CodeGen/MachineLICM.cpp
The file was addedllvm/test/CodeGen/PowerPC/DisableHoistingDueToBlockHotnessNoProfileData.mir