This is a simple patch that updates InstSimplify to return poison if the index is/can be out-of-bounds
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Analysis/InstructionSimplify.cpp | ||
---|---|---|
4403 | Unrelated, but we should probably have an explicit fold for poison Val here, in which case we don't need non-poison vec. |
llvm/lib/Analysis/InstructionSimplify.cpp | ||
---|---|---|
4403 | I'll make a patch for this |
Hi! It looks like this may be causing https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=29445 .
Hi, I suspect the error happens because InstSimplify couldn't fold e.g., icmp <2 x i8> %x, <undef, poison>, causing such form to survive until the assertion is checked.
I speculatively made a fix at https://reviews.llvm.org/D99853 , but I couldn't check whether this indeed fixes the failure however. :( I'll leave a comment at the oss-fuzz thread.
clang-format not found in user's PATH; not linting file.