InstSimplify: div %X, 0 -> undef
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 10 Dec 2014 07:52:18 +0000 (07:52 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 10 Dec 2014 07:52:18 +0000 (07:52 +0000)
commit71dc8fb867b549a0b161f43561658aac8e078f93
tree34ffee33dfcb481c1fbe117f24bad3590d75cb85
parent48a8e641e228f7aec182db4a4a469d9cdd41e8b9
InstSimplify: div %X, 0 -> undef

We already optimized rem %X, 0 to undef, we should do the same for div.

llvm-svn: 223919
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/test/Transforms/InstSimplify/undef.ll