[PATCH] D94082: [MachineLoop] Add new helper isLoopInvariant()

Sjoerd Meijer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 5 05:38:40 PST 2021


SjoerdMeijer created this revision.
SjoerdMeijer added reviewers: fhahn, dmgreen, samparker.
Herald added subscribers: asbirlea, hiraditya.
SjoerdMeijer requested review of this revision.
Herald added a project: LLVM.

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.


https://reviews.llvm.org/D94082

Files:
  llvm/include/llvm/CodeGen/MachineLoopInfo.h
  llvm/lib/CodeGen/MachineLICM.cpp
  llvm/lib/CodeGen/MachineLoopInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94082.314576.patch
Type: text/x-patch
Size: 5925 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210105/a74b6d5c/attachment.bin>


More information about the llvm-commits mailing list