[PATCH] D142801: [Local][InstCombine] Handle !noundef metadata in combineMetadata
luxufan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 27 23:06:50 PST 2023
StephenFan created this revision.
StephenFan added a reviewer: nikic.
Herald added a subscriber: hiraditya.
Herald added a project: All.
StephenFan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Handle !noundef metadata in comhineMetadata. The behavior of violating
!noundef metadata is undefined behavior. So if K dominates J, we can
preserve it uncontionally, otherwise, we preserve it if both K and J
have !noundef metadata been set.
This patch also makes !noundef metadata added in KnownIDs when doing
instruction combine for phi node.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D142801
Files:
llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp
llvm/lib/Transforms/Utils/Local.cpp
llvm/test/Transforms/InstCombine/phi-load-metadata-4.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142801.492984.patch
Type: text/x-patch
Size: 3466 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230128/5f886ebd/attachment-0001.bin>
More information about the llvm-commits
mailing list