Revert "[InstCombine] Fold `((X - Y) - Z)` to `X - (Y + Z)` (PR49858)"
authorPetr Hosek <phosek@google.com>
Wed, 7 Apr 2021 05:30:28 +0000 (22:30 -0700)
committerPetr Hosek <phosek@google.com>
Wed, 7 Apr 2021 05:30:28 +0000 (22:30 -0700)
commita547b4e26b311e417cd51100e379693f51a3f448
treeafe725509dfb0ceba2acfcca91863ba88fda2796
parent8b109bc2eae0d33a140982c02c77501932bfa394
Revert "[InstCombine] Fold `((X - Y) - Z)` to `X - (Y + Z)` (PR49858)"

This reverts commit 31d219d2997fed1b7dc97e0adf170d5aaf65883e which
causes an infinite loop when compiling the XRay runtime.
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
llvm/test/Transforms/InstCombine/abs-1.ll
llvm/test/Transforms/InstCombine/sub-from-sub.ll