[all-commits] [llvm/llvm-project] 04dd2a: [RISCV][GlobalISel] Select G_GLOBAL_VALUE (#70091)
Michael Maitland via All-commits
all-commits at lists.llvm.org
Mon Oct 30 12:46:49 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 04dd2ac03a568af157f465ec1242ce8bd14e0dcf
https://github.com/llvm/llvm-project/commit/04dd2ac03a568af157f465ec1242ce8bd14e0dcf
Author: Michael Maitland <michaeltmaitland at gmail.com>
Date: 2023-10-30 (Mon, 30 Oct 2023)
Changed paths:
M llvm/include/llvm/CodeGen/GlobalISel/InstructionSelector.h
M llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp
M llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
A llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/global-value32.mir
A llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/global-value64.mir
Log Message:
-----------
[RISCV][GlobalISel] Select G_GLOBAL_VALUE (#70091)
G_GLOBAL_VALUE should be lowered into an absolute address if
`-codemodel=small` is used or into a PC-relative if `-codemodel=medium`
is used.
PR #68380 tried to create special instructions to do this, but I don't
see why we need to do that.
More information about the All-commits
mailing list