[llvm] [X86] Use 32-bit jump table entries on Windows (PR #95962)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 18 11:08:48 PDT 2024
================
@@ -417,7 +417,8 @@ unsigned X86TargetLowering::getJumpTableEncoding() const {
if (isPositionIndependent() && Subtarget.isPICStyleGOT())
return MachineJumpTableInfo::EK_Custom32;
if (isPositionIndependent() &&
- getTargetMachine().getCodeModel() == CodeModel::Large)
+ getTargetMachine().getCodeModel() == CodeModel::Large &&
+ !Subtarget.isOSWindows())
----------------
efriedma-quic wrote:
Maybe isTargetCOFF(), to better match what we actually care about here.
https://github.com/llvm/llvm-project/pull/95962
More information about the llvm-commits
mailing list