[llvm] 749f36d - [LoongArch] Fix Subtarget.is64Bit
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 23 18:30:12 PDT 2023
Author: Fangrui Song
Date: 2023-08-23T18:30:07-07:00
New Revision: 749f36dae311000e1d69351707f4f24a72090c94
URL: https://github.com/llvm/llvm-project/commit/749f36dae311000e1d69351707f4f24a72090c94
DIFF: https://github.com/llvm/llvm-project/commit/749f36dae311000e1d69351707f4f24a72090c94.diff
LOG: [LoongArch] Fix Subtarget.is64Bit
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 35dcd668d0019e..2f8ce57d3f5f5b 100644
--- a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+++ b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
@@ -143,7 +143,7 @@ LoongArchTargetLowering::LoongArchTargetLowering(const TargetMachine &TM,
// Set operations for LA32 only.
- if (!Subtarget.is64Bit) {
+ if (!Subtarget.is64Bit()) {
setOperationAction(ISD::READ_REGISTER, MVT::i64, Custom);
setOperationAction(ISD::WRITE_REGISTER, MVT::i64, Custom);
setOperationAction(ISD::INTRINSIC_VOID, MVT::i64, Custom);
More information about the llvm-commits
mailing list