Currently, Machine LICM always doesn't hoist cheap instruction. This is not true for some targets, like PowerPC.
On PowerPC, if register pressure is allowed, we prefer to hoist even cheap instruction outside of loop.
This patch is to add a hook for the target to choose hoisting policy for cheap instructions.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
This comment was removed by shchenz.
Comment Actions
we decide to use another solution in https://reviews.llvm.org/D82709, so this NFC should not need any more.