[PATCH] D69442: [CVP] prevent propagating poison when substituting edge values into a phi (PR43802)

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 25 12:29:15 PDT 2019


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp:201
+  if (auto *CommonInst = dyn_cast<Instruction>(CommonValue))
+    CommonInst->dropPoisonGeneratingFlags();
   P->replaceAllUsesWith(CommonValue);
----------------
I don't think this is sufficient, as poison might come from an earlier instruction CommonValue depends on.


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

https://reviews.llvm.org/D69442





More information about the llvm-commits mailing list