[PATCH] D68189: [InstCombine] recognize popcount implemented in hacker's delight.
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 1 06:54:39 PDT 2019
xbolva00 added inline comments.
================
Comment at: llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp:270
+ bool IsType32 = I.getType()->isIntegerTy(32);
+ uint16_t FinalShiftConst = IsType32 ? 24 : 56;
+ uint64_t MulConst = IsType32 ? 0x01010101 : 0x0101010101010101;
----------------
Type size - 8?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68189/new/
https://reviews.llvm.org/D68189
More information about the llvm-commits
mailing list