[PATCH] D152550: [Constant Hoisting]: Hoist Constant GEP Expressions.

hassnaaHamdi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 16 10:28:05 PDT 2023


hassnaa-arm updated this revision to Diff 550804.
hassnaa-arm added a comment.

- Avoid hoisting in following cases:
  - The cost of the const expr is 'free' for the target.
  - The expr can be folded into a legal addressing mode for the target.
  - The expr has only single use, and it's not inside a loop.
- Now there are no regressions.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152550/new/

https://reviews.llvm.org/D152550

Files:
  llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
  llvm/test/CodeGen/Thumb2/mve-blockplacement.ll
  llvm/test/CodeGen/Thumb2/mve-memtp-loop.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152550.550804.patch
Type: text/x-patch
Size: 25709 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230816/787245ab/attachment-0001.bin>


More information about the llvm-commits mailing list