[all-commits] [llvm/llvm-project] 39edac: [RISCV][GISel] Fix incorrect call to getGlobalAddr...
Craig Topper via All-commits
all-commits at lists.llvm.org
Sat Nov 4 23:44:45 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 39edac23dfb7ead6da2c9b37c3286d06ea004e8d
https://github.com/llvm/llvm-project/commit/39edac23dfb7ead6da2c9b37c3286d06ea004e8d
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-11-04 (Sat, 04 Nov 2023)
Changed paths:
M llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
M llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/global-value32.mir
M llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/global-value64.mir
Log Message:
-----------
[RISCV][GISel] Fix incorrect call to getGlobalAddress in selectGlobalValue.
RISCVII::MO_HI was being passed to the offset argument instead of
the flags argument.
Adjust some other calls to not pass an explicit 0 to the offset argument
since it already has a default value of 0.
More information about the All-commits
mailing list