[PATCH] D140493: [SROA] Support promotion in presence of variably-indexed loads

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 22 09:48:48 PST 2022


lebedev.ri updated this revision to Diff 484871.
lebedev.ri added a comment.

Directly expand GEP's into math, seems nicer, and seems to help a tiny bit, but not sufficiently.
Also, don't cache non-GEP's.
https://llvm-compile-time-tracker.com/compare.php?from=19e55791c4fa484401d0b4a4e5d66dd313251ade&to=9b20759171567953b78b9a2c5b2b4257a4762f00&stat=instructions:u


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140493

Files:
  llvm/lib/Transforms/Scalar/SROA.cpp
  llvm/test/Transforms/SROA/widen-load-of-small-alloca.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140493.484871.patch
Type: text/x-patch
Size: 125587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221222/e2e223ae/attachment-0001.bin>


More information about the llvm-commits mailing list