[PATCH] D30665: [InstSimplify] vector div/rem with any zero element in divisor is undef
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 6 14:08:04 PST 2017
efriedma added a comment.
The logic goes something like this: division by zero is undefined behavior, therefore the instruction is unreachable, therefore we can replace all uses with undef.
https://reviews.llvm.org/D30665
More information about the llvm-commits
mailing list