[llvm] fb447e7 - [LoongArch] Use Subtarget consistently during LoongArchISelLowering init. NFC
Weining Lu via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 2 01:22:22 PDT 2023
Author: Weining Lu
Date: 2023-06-02T16:21:18+08:00
New Revision: fb447e7e7c8bbad71032e732b7436fbf7097dd90
URL: https://github.com/llvm/llvm-project/commit/fb447e7e7c8bbad71032e732b7436fbf7097dd90
DIFF: https://github.com/llvm/llvm-project/commit/fb447e7e7c8bbad71032e732b7436fbf7097dd90.diff
LOG: [LoongArch] Use Subtarget consistently during LoongArchISelLowering init. NFC
Added:
Modified:
llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
index 9b51730d8e04b..30d48f2d3c81f 100644
--- a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+++ b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
@@ -183,7 +183,7 @@ LoongArchTargetLowering::LoongArchTargetLowering(const TargetMachine &TM,
}
// Compute derived properties from the register classes.
- computeRegisterProperties(STI.getRegisterInfo());
+ computeRegisterProperties(Subtarget.getRegisterInfo());
setStackPointerRegisterToSaveRestore(LoongArch::R3);
More information about the llvm-commits
mailing list