[InstCombine] add fold for demand of low bit of abs()
authorSanjay Patel <spatel@rotateright.com>
Tue, 30 Mar 2021 18:33:30 +0000 (14:33 -0400)
committerSanjay Patel <spatel@rotateright.com>
Tue, 30 Mar 2021 19:14:37 +0000 (15:14 -0400)
commitc2ebad8d55bd90ac921b1219b25c1d1a864655ff
tree92d841d0134cfdcfc5fbb3b4fc80efe2f8493997
parent79ae41991c6bfe7e68e8c43d520297cf95853dc3
[InstCombine] add fold for demand of low bit of abs()

This is one problem shown in https://llvm.org/PR49763

https://alive2.llvm.org/ce/z/cV6-4K
https://alive2.llvm.org/ce/z/9_3g-L
llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
llvm/test/Transforms/InstCombine/abs-intrinsic.ll