Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/X86/X86ISelLowering.cpp | ||
---|---|---|
434 | Please add a comment explaining why we don't use popcntw |
llvm/lib/Target/X86/X86ISelLowering.cpp | ||
---|---|---|
434 | So something like for both i8/i16 "The 32-bit version is shorter to encode and the zext we emit for the promotion is likely going to be a 32-bit zero extend anyway." ? |
llvm/lib/Target/X86/X86ISelLowering.cpp | ||
---|---|---|
434 | Shouldn't it only refer to i16? "The 32-bit version is shorter to encode than popcntw, ..." |
llvm/lib/Target/X86/X86ISelLowering.cpp | ||
---|---|---|
434 | Yeah right :) |
llvm/lib/Target/X86/X86ISelLowering.cpp | ||
---|---|---|
434 | popcntw also has a false dependency on the dest that popcntl hasn't had since Cannon Lake. |
This should be isLegalOrPromoted