[PATCH] D130956: [X86][MC] Always emit `rep` prefix for `bsf`
Kan Shengchen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 2 00:54:13 PDT 2022
skan added inline comments.
================
Comment at: llvm/lib/Target/X86/X86MCInstLower.cpp:987
+ // recognize as TZCNT, which has better performance than BSF.
+ if (X86::isBSF(OutMI.getOpcode()))
+ OutMI.setFlags(X86::IP_HAS_REPEAT);
----------------
Do we need to check any target feature here?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130956/new/
https://reviews.llvm.org/D130956
More information about the llvm-commits
mailing list