OSDN Git Service

[ARM] Allow CMPZ transforms even if the input has multiple uses.
authorEli Friedman <efriedma@codeaurora.org>
Fri, 8 Jun 2018 21:16:56 +0000 (21:16 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Fri, 8 Jun 2018 21:16:56 +0000 (21:16 +0000)
commit09c10d86a80302cad0ee84ae77f586d026ce21e7
tree945566ea254cd2611fe987ef3b1815b316551de6
parentc2adc2d4299cb90f8947cddf0f4955556bfb643c
[ARM] Allow CMPZ transforms even if the input has multiple uses.

It looks like this got left in by accident in r289794; I can't think of
any reason this check would be necessary.  (Maybe it was meant to be a
check that the AND has one use? But we check that a few lines earlier.)

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334322 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelDAGToDAG.cpp
test/CodeGen/ARM/and-cmpz.ll
test/CodeGen/ARM/load_i1_select.ll
test/CodeGen/Thumb/thumb-shrink-wrapping.ll