Add a shouldHoist method to TargetInstrInfo which is queried by
MachineLICM to override hoisting decisions for a given target.
This mirrors functionality provided by shouldSink.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/include/llvm/CodeGen/TargetInstrInfo.h | ||
---|---|---|
385 | Since this hook only allows targets to prevent things from being hoisted, I wonder if "Return false if the instruction should not be hoisted by MachineLICM" would describe it better? Similarly "override the default behavior" fails to mention that it can only be overridden in one direction. |
Since this hook only allows targets to prevent things from being hoisted, I wonder if "Return false if the instruction should not be hoisted by MachineLICM" would describe it better?
Similarly "override the default behavior" fails to mention that it can only be overridden in one direction.