[PATCH] D96772: [LSR] Cleanup of getPreferredAddresingMode. NFC.

Sjoerd Meijer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 16 05:25:32 PST 2021


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

This is a follow up D96600 <https://reviews.llvm.org/D96600> and cleans up all calls to `getPreferredAddresingMode`. i.e., we really don't need to query the same things again and again, but get the preferred addressing mode once. So this should be a lot friendlier for compile times, especially if we start implementing `getPreferredAddresingMode`.


https://reviews.llvm.org/D96772

Files:
  llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96772.323960.patch
Type: text/x-patch
Size: 6495 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210216/93b04ea4/attachment-0001.bin>


More information about the llvm-commits mailing list