[PATCH] D93994: [InstSimplify] Fold insertelement vec, poison, idx into vec

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 3 09:08:20 PST 2021


nikic added inline comments.


================
Comment at: llvm/lib/Analysis/InstructionSimplify.cpp:4402
+  if (isa<PoisonValue>(Val) ||
+      (Q.isUndefValue(Val) && isGuaranteedNotToBeUndefOrPoison(Vec)))
     return Vec;
----------------
You can also switch this to use `isGuaranteedNotToBePoison()` to be more precise.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D93994



More information about the llvm-commits mailing list