This is an archive of the discontinued LLVM Phabricator instance.

[DAGCombine] fold (A+B)-(A-C) -> B+C
AbandonedPublic

Authored by Pretty-box on May 30 2022, 6:03 AM.

Diff Detail

Event Timeline

Pretty-box created this revision.May 30 2022, 6:03 AM
Pretty-box requested review of this revision.May 30 2022, 6:03 AM
nikic added a subscriber: nikic.May 30 2022, 6:06 AM

This is already handled by InstCombine: https://llvm.godbolt.org/z/dGzGzGqsc Is there legalization code that produces this pattern?

Pretty-box abandoned this revision.Jun 1 2022, 2:14 AM