[InstCombine] Compute bits of first operand for multi-use sub
authorNikita Popov <npopov@redhat.com>
Wed, 17 May 2023 16:30:40 +0000 (18:30 +0200)
committerNikita Popov <npopov@redhat.com>
Wed, 17 May 2023 16:34:17 +0000 (18:34 +0200)
commit77aaba6aae9667e5091bf35b1cfdef995840a8c9
tree082159a9c6ab40ebd90a1f69058c78383e6191f3
parent6f7a3b078191a925546ea3fead2e9cf0efdd9257
[InstCombine] Compute bits of first operand for multi-use sub

Otherwise the result will always be unknown anyway. This fixes one
of the last inconsistencies in results between computeKnownBits()
and SimplifyDemandedBits().
llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp