Revert 4334892e7b "[DAGCombine][ARM] x ==/!= c -> (x - c) ==/!= 0 iff '-c' can...
authorHans Wennborg <hans@chromium.org>
Wed, 23 Oct 2019 17:44:16 +0000 (19:44 +0200)
committerHans Wennborg <hans@chromium.org>
Wed, 23 Oct 2019 17:52:02 +0000 (19:52 +0200)
commit684ebc605e0b7f8782e634e1bb3621a9b0ec674f
treee34b43bcbabff2a47e166cfecc09a8ad057370ca
parentd01fd2f35a02cb53a5d9d1a5342b5085c5dce66c
Revert 4334892e7b "[DAGCombine][ARM] x ==/!= c  ->  (x - c) ==/!= 0  iff '-c' can be folded into the x node."

This broke various Windows builds, see comments on the Phabricator
review.

This also reverts the follow-up 20bf0cf.

> Summary:
> This fold, helps recover from the rest of the D62266 ARM regressions.
> https://rise4fun.com/Alive/TvpC
>
> Note that while the fold is quite flexible, i've restricted it
> to the single interesting pattern at the moment.
>
> Reviewers: efriedma, craig.topper, spatel, RKSimon, deadalnix
>
> Reviewed By: deadalnix
>
> Subscribers: javed.absar, kristof.beyls, llvm-commits
>
> Tags: #llvm
>
> Differential Revision: https://reviews.llvm.org/D62450
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/ARM/addsubcarry-promotion.ll
llvm/test/CodeGen/X86/pr43769.ll [deleted file]