[PATCH] D63004: [TargetLowering] Simplify (ctpop x) == 1
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 10:18:58 PDT 2019
xbolva00 added a comment.
@spatel Maybe we should just expand in it instcombine? I found something interesting...
Example: https://pastebin.com/NdMSsuri
Compiled with -O3 flag.
Even with this patch, f1 and f2 variants are not same (execution time), f2 is much faster. If I disable loop vectorization, there are almost same. Maybe loop vectorizer cannot handle ctpop very well? @craig.topper
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63004/new/
https://reviews.llvm.org/D63004
More information about the llvm-commits
mailing list