[SDAG] convert (sub x, 1) to (add x, -1) in ctpop expansion; NFC
authorSanjay Patel <spatel@rotateright.com>
Wed, 24 Jul 2019 15:43:50 +0000 (15:43 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 24 Jul 2019 15:43:50 +0000 (15:43 +0000)
commit10dad95a75592717d2f7c0ebc181fb8a970a8df7
tree12f8a53b65666dfbebfcd146e5b3223413e60b6d
parent0bf5f7082cc9b030f850496e428cb7957d6af381
[SDAG] convert (sub x, 1) to (add x, -1) in ctpop expansion; NFC

We canonicalize to the add form, so create that directly for efficiency.

llvm-svn: 366914
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp