Revert "[InstCombine] generalize subtract with 'not' operands"
authorFlorian Hahn <flo@fhahn.com>
Mon, 23 Aug 2021 14:31:48 +0000 (15:31 +0100)
committerFlorian Hahn <flo@fhahn.com>
Mon, 23 Aug 2021 14:47:21 +0000 (15:47 +0100)
commit9577fac0fddfdf8167bf8dc7b2e76b0701e656da
treeb3b1c669353ec7a55d37ea034deb748f1a1c87b1
parent628eaa4cf7a2fcfc744a51864689b38a24f9ab3d
Revert "[InstCombine] generalize subtract with 'not' operands"

This reverts commit 3aa009cc87e3789ac44bbb98b04846736373e08f.

The reverted commit causes an infinite loop in instcombine. See PR51584.
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
llvm/test/Transforms/InstCombine/minmax-intrinsics.ll
llvm/test/Transforms/InstCombine/reassociate-nuw.ll
llvm/test/Transforms/InstCombine/sub.ll