This patch allows LICM to hoist/sink freeze instructions out of a loop.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/Scalar/LICM.cpp | ||
---|---|---|
1235–1237 | Should there be a standalone test for this? |
Comment Actions
There was a confusion about the meaning of sink - I thought it was about moving an instruction from outside of the loop to inside.
freeze is allowed to move from inside to outside of a loop, including both hoist and sink.
I added a test for sink too.
Should there be a standalone test for this?