[DemandedBits][BDCE] Add support for min/max intrinsics
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 4 Sep 2020 20:40:46 +0000 (22:40 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 10 Sep 2020 20:13:31 +0000 (22:13 +0200)
commita5168bdb4a25485ac62e18bdc538b4842bc9fbd9
treed1549c5e409ea9f123ed6fbaa57547bad9c9dd39
parent99e78cb7185db1a15afd33020a1e026dc7ac5e1b
[DemandedBits][BDCE] Add support for min/max intrinsics

Add DemandedBits / BDCE support for min/max intrinsics: If the low
bits are not demanded in the result, they also aren't demanded in
the operands.

Differential Revision: https://reviews.llvm.org/D87161
llvm/lib/Analysis/DemandedBits.cpp
llvm/test/Transforms/BDCE/intrinsics.ll