-
Notifications
You must be signed in to change notification settings - Fork 24
Register re-allocation tweaks #340
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
Changes from all commits
a52c0af
ac01b37
a0bc1af
927da71
fe6c322
f5d5180
1dde07c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates | ||
// (c) Copyright 2023-2025 Advanced Micro Devices, Inc. or its affiliates | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
|
@@ -27,10 +27,6 @@ cl::opt<bool> | |
EnableSubregRenaming("aie-subreg-renaming", cl::Hidden, cl::init(false), | ||
cl::desc("Enable RenameIndependentSubregs pass")); | ||
|
||
static cl::opt<bool> | ||
EnableWAWRegRewrite("aie-wawreg-rewrite", | ||
cl::desc("Enable the WAW Register Renaming in loops"), | ||
cl::init(true), cl::Hidden); | ||
static cl::opt<bool> | ||
EnableReservedRegsLICM("aie-reserved-regs-licm", cl::Hidden, cl::init(true), | ||
cl::desc("Enable LICM for some reserved registers")); | ||
|
@@ -45,6 +41,7 @@ extern cl::opt<bool> EnableStagedRA; | |
extern cl::opt<bool> EnableSuperRegSplitting; | ||
extern cl::opt<bool> AllocateMRegsFirst; | ||
extern cl::opt<bool> EnablePreMISchedCoalescer; | ||
extern cl::opt<bool> EnableWAWRegRewrite; | ||
|
||
extern bool AIEDumpArtifacts; | ||
|
||
|
@@ -161,8 +158,10 @@ bool AIE2PassConfig::addRegAssignAndRewriteOptimized() { | |
addPass(createAIESuperRegRewriter()); | ||
} | ||
addPass(createGreedyRegisterAllocator()); | ||
if (EnableWAWRegRewrite) | ||
if (EnableWAWRegRewrite) { | ||
addPass(createAIEWawRegRewriter()); | ||
addPass(createGreedyRegisterAllocator()); | ||
F-Stuckmann marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should greedy also run after There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Definitely, in general, the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added a new commit for AIE2p |
||
} | ||
addPass(createVirtRegRewriter()); | ||
|
||
return true; | ||
|
Uh oh!
There was an error while loading. Please reload this page.