[InstCombine] Allow KnownBits to be propagated
authorPaulo Matos <pmatos@igalia.com>
Mon, 17 Jul 2023 06:41:43 +0000 (08:41 +0200)
committerPaulo Matos <pmatos@igalia.com>
Tue, 18 Jul 2023 11:01:22 +0000 (13:01 +0200)
commiteb5d79876a0963e39fdafaa9a9485c3800068932
tree210c38a6b01e5df2b7a2c40bc3a422933f323230
parentc28e09c8d1ca3a82467e71af89f1ac7b71458fca
[InstCombine] Allow KnownBits to be propagated

Bug #63699 shows a hang on arm in instcombine because we do not
propagate known bits for fshl/fshr rotates. We perform the propagation
and add regression test.

Differential Revision: https://reviews.llvm.org/D155307
llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
llvm/test/Transforms/InstCombine/2023-07-13-arm-infiniteloop.ll [new file with mode: 0644]