OSDN Git Service

[DAGCombiner] Fix a crash visiting `AND` nodes.
authorDavide Italiano <davide@freebsd.org>
Fri, 28 Oct 2016 23:55:32 +0000 (23:55 +0000)
committerDavide Italiano <davide@freebsd.org>
Fri, 28 Oct 2016 23:55:32 +0000 (23:55 +0000)
commitc5763946b38ce7d5d664d667e1a58c7d6db67b4c
tree5cb40738175db7982812fbc32d3a869108ed9acd
parentb15bbca10c7467d086387fadd0c9f6fdb0338fa5
[DAGCombiner] Fix a crash visiting `AND` nodes.

Instead of asserting that the shift count is != 0 we just bail out
as it's not profitable trying to optimize a node which will be
removed anyway.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285480 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/pr30813.s [new file with mode: 0644]