[llvm] [ValueLattice][SCCP] Consider provenance for predicate-derived pointer constants (PR #160083)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 9 07:38:16 PST 2026
================
@@ -356,11 +379,12 @@ bool SCCPSolver::simplifyInstsInBlock(BasicBlock &BB,
if (Inst.getType()->isVoidTy())
continue;
if (tryToReplaceWithConstant(&Inst)) {
- if (wouldInstructionBeTriviallyDead(&Inst))
+ if (isInstructionTriviallyDead(&Inst)) {
----------------
dtcxzyw wrote:
Side-effecting instructions are considered dead by `isInstructionTriviallyDead`.
https://github.com/llvm/llvm-project/pull/160083
More information about the llvm-commits
mailing list