[llvm] [LoongArch] Return true from shouldConsiderGEPOffsetSplit (PR #88371)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 11 02:55:35 PDT 2024
https://github.com/wangleiat created https://github.com/llvm/llvm-project/pull/88371
Similar to commit 2e46312ffd16982f0e991c9434d4908b107f5260.
>From ede26d4d48e4be46e33bc33c09a01ef8ace169d9 Mon Sep 17 00:00:00 2001
From: wanglei <wanglei at loongson.cn>
Date: Thu, 11 Apr 2024 17:01:08 +0800
Subject: [PATCH] [LoongArch] Return true from shouldConsiderGEPOffsetSplit
Similar to commit 2e46312ffd16982f0e991c9434d4908b107f5260.
---
llvm/lib/Target/LoongArch/LoongArchISelLowering.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/lib/Target/LoongArch/LoongArchISelLowering.h b/llvm/lib/Target/LoongArch/LoongArchISelLowering.h
index 9e9ac0b8269291..4bb6c049f8d758 100644
--- a/llvm/lib/Target/LoongArch/LoongArchISelLowering.h
+++ b/llvm/lib/Target/LoongArch/LoongArchISelLowering.h
@@ -238,6 +238,7 @@ class LoongArchTargetLowering : public TargetLowering {
bool isShuffleMaskLegal(ArrayRef<int> Mask, EVT VT) const override {
return false;
}
+ bool shouldConsiderGEPOffsetSplit() const override { return true; }
private:
/// Target-specific function used to lower LoongArch calling conventions.
More information about the llvm-commits
mailing list