[PATCH] D69127: [DAGCombiner] widen zext of popcount based on target support
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 19 07:55:45 PDT 2019
RKSimon added a comment.
any_extend might get generated when using ctpop for 'allones' tests:
define i64 @var_ctpop_i32(i32 %a) {
%1 = call i32 @llvm.ctpop.i32(i32 %a)
%2 = zext i32 %1 to i64 ; SimplifyDemandedBits may turn zext (or sext) into aext
%3 = and i64 %2, 32
ret i64 %3
}
declare i32 @llvm.ctpop.i32(i32)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69127/new/
https://reviews.llvm.org/D69127
More information about the llvm-commits
mailing list