[PATCH] D152773: [SCCP] Propagate undef when visiting some instructions

luxufan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 12 21:42:51 PDT 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.

If a value lattice is constantrange_including_undef, replaceSignInst to
unsigned Inst is invalid. But SCCPSolver didn't propagate undef when
visiting some instructions. This patch fixes this.

https://alive2.llvm.org/ce/z/85Ec-i
https://alive2.llvm.org/ce/z/jVZf67
https://alive2.llvm.org/ce/z/hZCw7k


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152773

Files:
  llvm/lib/Transforms/Utils/SCCPSolver.cpp
  llvm/test/Transforms/SCCP/ashr.ll
  llvm/test/Transforms/SCCP/ranges-sext.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152773.530765.patch
Type: text/x-patch
Size: 8064 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230613/5a3889b0/attachment.bin>


More information about the llvm-commits mailing list