[ARM] Ensure CSINC has one use in CSINV combine
authorDavid Green <david.green@arm.com>
Thu, 29 Apr 2021 09:59:14 +0000 (10:59 +0100)
committerDavid Green <david.green@arm.com>
Thu, 29 Apr 2021 09:59:14 +0000 (10:59 +0100)
commite11420ca2371cb8e53fec90cfc619ddf8249c965
tree14d6bb87c96fb3d521bd5bd0dc9d8172879ed700
parent42e5f42215c098face7f835f1a5a223409b85f69
[ARM] Ensure CSINC has one use in CSINV combine

Otherwise the CMP glue may be used in multiple nodes, needing to be
emitted multiple times. Currently this either increases instruction
count or fails as it attempt to insert the same node multiple times.
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/test/CodeGen/Thumb2/csel.ll