[PATCH] D130995: [X86] Promote i16 CTTZ/CTTZ_ZERO_UNDEF always.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 2 09:25:37 PDT 2022


craig.topper created this revision.
craig.topper added reviewers: RKSimon, skan, pengfei.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added a project: LLVM.

If we're going to emit a rep prefix before bsf as proposed in
D130956 <https://reviews.llvm.org/D130956>, it makes sense to promote i16 operations to i32 to avoid
the false depedency of tzcntw.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130995

Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/bmi-intrinsics-fast-isel.ll
  llvm/test/CodeGen/X86/clz.ll
  llvm/test/CodeGen/X86/lzcnt-tzcnt.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130995.449309.patch
Type: text/x-patch
Size: 7310 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220802/366cc5b2/attachment.bin>


More information about the llvm-commits mailing list