[InstCombine] remove dead code for add (select cond, (sub), 0); NFC
authorSanjay Patel <spatel@rotateright.com>
Tue, 6 Sep 2022 15:55:53 +0000 (11:55 -0400)
committerSanjay Patel <spatel@rotateright.com>
Tue, 6 Sep 2022 16:19:50 +0000 (12:19 -0400)
commitae117e1c1ba68da48c70f5cd8cb3c666fbdd1b77
tree3980112300a13e457f6ea8575c105a615eb93497
parente028121ed0fefe0693cdc7ff59aabba931519170
[InstCombine] remove dead code for add (select cond, (sub), 0); NFC

This pattern is handled more generally in SimplifySelectsFeedingBinaryOp().
Tests to confirm that added to the add.ll test file in the previous commit.
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp