This factors out code from MachineLICM that determines whether an instruction is loop-invariant, which is a generally useful function. Thus this allows to use that helper elsewhere too.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D94082
[MachineLoop] Add new helper isLoopInvariant() ClosedPublic Authored by SjoerdMeijer on Jan 5 2021, 5:38 AM.
Details Summary This factors out code from MachineLICM that determines whether an instruction is loop-invariant, which is a generally useful function. Thus this allows to use that helper elsewhere too.
Diff Detail Event Timeline
This revision is now accepted and ready to land.Jan 5 2021, 8:16 AM Closed by commit rG8af859d514fa: [MachineLoop] New helper isLoopInvariant() (authored by SjoerdMeijer). · Explain WhyJan 8 2021, 1:27 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 314609 llvm/include/llvm/CodeGen/MachineLoopInfo.h
llvm/lib/CodeGen/MachineLICM.cpp
llvm/lib/CodeGen/MachineLoopInfo.cpp
|
can this be const?