[InstCombine] Treat passing undef to noundef params as UB
authorArthur Eubanks <aeubanks@google.com>
Wed, 31 Aug 2022 18:17:10 +0000 (11:17 -0700)
committerArthur Eubanks <aeubanks@google.com>
Thu, 1 Sep 2022 22:16:45 +0000 (15:16 -0700)
commitc911befaec494c52a63e3b957e28d449262656fb
treec863cc008cf743619dd095ce6b1f8a1d28b607d1
parent5a231720bc0619aa8744d47470fee08afc643b4d
[InstCombine] Treat passing undef to noundef params as UB

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D133036
clang/test/CodeGenOpenCL/overload.cl
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/call-undef.ll
llvm/test/Transforms/InstCombine/out-of-bounds-indexes.ll