[COFF][X86_64] Put jump table in .rdata for Windows
authorWei Xiao <wei3.xiao@intel.com>
Fri, 24 Feb 2023 06:33:15 +0000 (14:33 +0800)
committerWei Xiao <wei3.xiao@intel.com>
Wed, 1 Mar 2023 02:35:38 +0000 (10:35 +0800)
commit3fd533fd33f394e256a8ae38a3eabd7e998b68a0
treea759c4585ea7d66935511d7bb81634414abc5c4d
parent368c9f881320d86c20f24d23965cd30758304b30
[COFF][X86_64] Put jump table in .rdata for Windows

Put jump table in .rdata for Windows to align with that for Linux.
It can avoid loading the same code page into I$ and D$ simultaneously
and thus favor performance.

Differential Revision: https://reviews.llvm.org/D144701
llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/test/MC/COFF/x86-64-jumptable-rdata.ll [new file with mode: 0644]