[InstCombine] Fold mul of abs intrinsic
authorNikita Popov <nikita.ppv@gmail.com>
Sat, 5 Sep 2020 10:37:45 +0000 (12:37 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 5 Sep 2020 10:37:45 +0000 (12:37 +0200)
commit58b28fa7a2fd57051f3d2911878776d6f57b18d8
treede609b7ad000ad7aa777ec1ece983d16f6759066
parent3ab13348ba4c25f12254dd6c772f9fb1060b4425
[InstCombine] Fold mul of abs intrinsic

Same as the existing SPF_ABS fold. We don't need to explicitly
handle NABS, as the negs will get folded away first.
llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
llvm/test/Transforms/InstCombine/mul.ll