If we're going to emit a rep prefix before bsf as proposed in
D130956, it makes sense to promote i16 operations to i32 to avoid
the false depedency of tzcntw.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D130995
[X86] Promote i16 CTTZ/CTTZ_ZERO_UNDEF always. ClosedPublic Authored by craig.topper on Aug 2 2022, 9:25 AM.
Details Summary If we're going to emit a rep prefix before bsf as proposed in
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Aug 2 2022, 5:47 PM This revision was landed with ongoing or failed builds.Aug 3 2022, 1:12 PM Closed by commit rGff91b2d9df80: [X86] Promote i16 CTTZ/CTTZ_ZERO_UNDEF always. (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 449765 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
|
Would it not be better to just perform the OR %EAX, $65536 and avoid the cmp+branch entirely?