[PATCH] D112382: [InstSimplify] Refactor invariant.group load folding

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 24 09:52:30 PDT 2021


nikic created this revision.
nikic added a reviewer: aeubanks.
Herald added subscribers: ormris, dexonsmith, okura, jdoerfert, kuter, hiraditya, Prazek.
nikic requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: sstefan1.
Herald added a reviewer: baziotis.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Currently strip.invariant/launder.invariant are handled by constructing constant expressions with the intrinsics skipped. This takes an alternative approach of accumulating the offset using stripAndAccumulateConstantOffsets(), with a flag to look through invariant.group intrinsics.


https://reviews.llvm.org/D112382

Files:
  llvm/include/llvm/IR/Value.h
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/lib/IR/Value.cpp
  llvm/lib/Transforms/IPO/AttributorAttributes.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112382.381788.patch
Type: text/x-patch
Size: 6475 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211024/7ec7a5b6/attachment.bin>


More information about the llvm-commits mailing list