[PATCH] D93990: [InstSimplify] Return poison if insertelement touches out of bounds

Juneyoung Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 3 08:18:47 PST 2021


aqjune added inline comments.


================
Comment at: llvm/lib/Analysis/InstructionSimplify.cpp:4403
       isGuaranteedNotToBeUndefOrPoison(Vec))
     return Vec;
 
----------------
nikic wrote:
> Unrelated, but we should probably have an explicit fold for poison `Val` here, in which case we don't need non-poison vec.
I'll make a patch for this


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D93990



More information about the llvm-commits mailing list