From 219a5b23e8e4b720124364f1bb3003b8ea959fe4 Mon Sep 17 00:00:00 2001 From: Vladimir Radosavljevic Date: Mon, 30 Sep 2024 14:19:56 +0200 Subject: [PATCH] fixup! [EraVM] Add support for splitting live ranges of PHI nodes in loops --- llvm/lib/Target/EraVM/EraVMPostCodegenPrepare.cpp | 2 +- llvm/test/CodeGen/EraVM/split-loop-phi-live-ranges.ll | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/EraVM/EraVMPostCodegenPrepare.cpp b/llvm/lib/Target/EraVM/EraVMPostCodegenPrepare.cpp index a1dd65401796..ee3ed01ee83b 100644 --- a/llvm/lib/Target/EraVM/EraVMPostCodegenPrepare.cpp +++ b/llvm/lib/Target/EraVM/EraVMPostCodegenPrepare.cpp @@ -34,7 +34,7 @@ using namespace llvm::PatternMatch; "EraVM optimizations after CodeGenPrepare pass" static cl::opt EnableSplitLoopPHILiveRanges( - "eravm-enable-split-loop-phi-live-ranges", cl::Hidden, cl::init(true), + "eravm-enable-split-loop-phi-live-ranges", cl::Hidden, cl::init(false), cl::desc("Enable splitting live ranges of PHI nodes in loops")); static cl::opt NumOfPHIUsesToSplitLiveRanges( diff --git a/llvm/test/CodeGen/EraVM/split-loop-phi-live-ranges.ll b/llvm/test/CodeGen/EraVM/split-loop-phi-live-ranges.ll index 61c3563d7258..14e1ebc03f7b 100644 --- a/llvm/test/CodeGen/EraVM/split-loop-phi-live-ranges.ll +++ b/llvm/test/CodeGen/EraVM/split-loop-phi-live-ranges.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2 -; RUN: opt -passes=eravm-post-codegen-prepare -eravm-num-of-phi-uses-to-split-live-ranges=2 -S < %s | FileCheck %s +; RUN: opt -passes=eravm-post-codegen-prepare -eravm-enable-split-loop-phi-live-ranges -eravm-num-of-phi-uses-to-split-live-ranges=2 -S < %s | FileCheck %s target datalayout = "E-p:256:256-i256:256:256-S32-a:256:256" target triple = "eravm"