[NFCI][InstCombine] Refactor 'sink negation into select if that folds one hand of...
authorRoman Lebedev <lebedev.ri@gmail.com>
Sat, 4 Jan 2020 14:24:20 +0000 (17:24 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sat, 4 Jan 2020 14:30:51 +0000 (17:30 +0300)
commit6d05bc2e3a9b54fde53aa5cbd83cc7c1d432cac1
tree5cd5fd1aa6a32e0ca9bbd48d535b74ca434918b9
parent772ede3d5d552e0214473f247f7f98f15e596fe5
[NFCI][InstCombine] Refactor 'sink negation into select if that folds one hand of select to 0' fold

I would think it's better than having two practically identical folds
next to eachother, but then generalization isn't all that pretty
due to the fact that we need to produce different `sub` each time..

This change is no-functional-changes-intended refactoring.
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp