[PATCH] D142687: [Local] Don't keep K's range even if K dominates J

luxufan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 26 21:59:45 PST 2023


StephenFan created this revision.
StephenFan added reviewers: nikic, fhahn.
Herald added subscribers: kmitropoulou, hiraditya.
Herald added a project: All.
StephenFan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Since D141386 <https://reviews.llvm.org/D141386> has changed the return value of !range from IUB to poison,
metadata !range shouldn't be preserved even if K dominates J.

If this patch was accepted, I plan to adjust metadata !nonnull as well.
BTW, I found that metadata !noundef is not handled in combineMetadata,
is this intentional?


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142687

Files:
  llvm/lib/Transforms/Utils/Local.cpp
  llvm/test/Transforms/GVN/range.ll
  llvm/test/Transforms/InstCombine/load-combine-metadata.ll
  llvm/test/Transforms/JumpThreading/thread-loads.ll
  llvm/test/Transforms/NewGVN/range.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142687.492642.patch
Type: text/x-patch
Size: 7494 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230127/1ab58582/attachment.bin>


More information about the llvm-commits mailing list