OSDN Git Service

InstSimplify: If divisor element is undef simplify to undef
authorZvi Rackover <zvi.rackover@intel.com>
Wed, 24 Jan 2018 17:22:00 +0000 (17:22 +0000)
committerZvi Rackover <zvi.rackover@intel.com>
Wed, 24 Jan 2018 17:22:00 +0000 (17:22 +0000)
commitf2b2f1fda33ed5e3aed3f17a9e04e8b0e2861d57
tree00e8d03fe948cb08bd2e2609150ded151a054bde
parent2ce5d0b2bca4c096184a0b0da64869917a2a80ef
InstSimplify: If divisor element is undef simplify to undef

Summary:
If any vector divisor element is undef, we can arbitrarily choose it be
zero which would make the div/rem an undef value by definition.

Reviewers: spatel, reames

Reviewed By: spatel

Subscribers: magabari, llvm-commits

Differential Revision: https://reviews.llvm.org/D42485

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@323343 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/div.ll
test/Transforms/InstSimplify/rem.ll