Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EraVM] Disable splitting loop phi live ranges by default #709

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llvm/lib/Target/EraVM/EraVMPostCodegenPrepare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ using namespace llvm::PatternMatch;
"EraVM optimizations after CodeGenPrepare pass"

static cl::opt<bool> 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<unsigned> NumOfPHIUsesToSplitLiveRanges(
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/CodeGen/EraVM/split-loop-phi-live-ranges.ll
Original file line number Diff line number Diff line change
@@ -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"
Expand Down