[PATCH] D148709: [LVI][CVP] Don't compute CR at SelectInst Use if Cond value may not be well-defined

luxufan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 19 05:22:26 PDT 2023


StephenFan created this revision.
StephenFan added reviewers: nikic, Allen.
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.

If the condition value of SelectInst may be a poison or undef value,
infer constant range at SelectInst use is in correct.

See https://alive2.llvm.org/ce/z/MWMTYn


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148709

Files:
  llvm/lib/Analysis/LazyValueInfo.cpp
  llvm/test/Transforms/CorrelatedValuePropagation/cond-at-use.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148709.514912.patch
Type: text/x-patch
Size: 7798 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230419/12e2f135/attachment.bin>


More information about the llvm-commits mailing list