[PATCH] D121147: [x86] try harder to use shift instead of test if it can save some immediate bytes
Matthias Braun via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 9 15:35:31 PST 2022
MatzeB added a comment.
I was thinking about the same thing, though looking around `https://www.uops.info/table.html` it seems that many CPUs can only schedule shifts on 1 or 2 of their ports while `and` typically can be scheduled on all of them. I'm not really sure whether that means we should only perform this transformation when going for code-size or whether it's unlikely anyway to hit port constraints so we should always do it...
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121147/new/
https://reviews.llvm.org/D121147
More information about the llvm-commits
mailing list