aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/PowerPC
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2024-06-14 08:51:56 +0100
committerGitHub <noreply@github.com>2024-06-14 08:51:56 +0100
commit706e1975400b3f30bd406b694bb711a7c7dbe1c4 (patch)
tree6070cc4b97549c0bd2a7cda2c122ea398a828f92 /llvm/lib/Target/PowerPC
parentd712ae4a21822a51817941e7007e0dd41343cde3 (diff)
downloadllvm-706e1975400b3f30bd406b694bb711a7c7dbe1c4.zip
llvm-706e1975400b3f30bd406b694bb711a7c7dbe1c4.tar.gz
llvm-706e1975400b3f30bd406b694bb711a7c7dbe1c4.tar.bz2
[CodeGen] Remove target SubRegLiveness flags (#95437)
This removes the uses of target flags to disable subreg liveness, relying on the `-enable-subreg-liveness` flag instead. The `-enable-subreg-liveness` flag has been changed to take precedence over the subtarget if set, and one use of `Subtarget->enableSubRegLiveness()` has been changed to `MRI->subRegLivenessEnabled()` to make sure the option properly applies.
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r--llvm/lib/Target/PowerPC/PPCSubtarget.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
index 0628fbb..bd9af12 100644
--- a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
+++ b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
@@ -38,11 +38,6 @@ using namespace llvm;
#include "PPCGenSubtargetInfo.inc"
static cl::opt<bool>
- UseSubRegLiveness("ppc-track-subreg-liveness",
- cl::desc("Enable subregister liveness tracking for PPC"),
- cl::init(true), cl::Hidden);
-
-static cl::opt<bool>
EnableMachinePipeliner("ppc-enable-pipeliner",
cl::desc("Enable Machine Pipeliner for PPC"),
cl::init(false), cl::Hidden);
@@ -186,9 +181,7 @@ bool PPCSubtarget::useAA() const {
return true;
}
-bool PPCSubtarget::enableSubRegLiveness() const {
- return UseSubRegLiveness;
-}
+bool PPCSubtarget::enableSubRegLiveness() const { return true; }
bool PPCSubtarget::isGVIndirectSymbol(const GlobalValue *GV) const {
if (isAIXABI()) {