[PATCH] D135435: [Attributor] Use ConstantFoldLoadFromConst()

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 7 06:47:37 PDT 2022


nikic updated this revision to Diff 466065.
nikic added a comment.

Fall back to ConstantFoldLoadFromUniformValue() if the offset is not known. This should handle various uniform cases like poison, undef and zeroinitializer.


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

https://reviews.llvm.org/D135435

Files:
  llvm/lib/Transforms/IPO/Attributor.cpp
  llvm/test/Transforms/Attributor/value-simplify-pointer-info-struct.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135435.466065.patch
Type: text/x-patch
Size: 5285 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221007/47aad45d/attachment.bin>


More information about the llvm-commits mailing list