[PATCH] D139289: [SCCP] Propagate equality or inequality state of a not-constant

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 5 02:49:11 PST 2022


nikic requested changes to this revision.
nikic added inline comments.
This revision now requires changes to proceed.


================
Comment at: llvm/lib/Transforms/Utils/SCCPSolver.cpp:1330
+                         ? ValueLatticeElement::getNot(CondVal.getConstant())
+                         : ValueLatticeElement::get(CondVal.getConstant()));
         return;
----------------
Shouldn't this be getNotConstant()? Probably missing test coverage, I'd expect this to assert.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139289/new/

https://reviews.llvm.org/D139289



More information about the llvm-commits mailing list