mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Move rematerialization out of beta.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35419 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -50,11 +50,6 @@ namespace {
|
|||||||
EnableJoining("join-liveintervals",
|
EnableJoining("join-liveintervals",
|
||||||
cl::desc("Coallesce copies (default=true)"),
|
cl::desc("Coallesce copies (default=true)"),
|
||||||
cl::init(true));
|
cl::init(true));
|
||||||
|
|
||||||
static cl::opt<bool>
|
|
||||||
EnableReMat("enable-rematerialization",
|
|
||||||
cl::desc("Perform trivial re-materialization"),
|
|
||||||
cl::init(false));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void LiveIntervals::getAnalysisUsage(AnalysisUsage &AU) const {
|
void LiveIntervals::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||||
@@ -436,8 +431,7 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock *mbb,
|
|||||||
// time we see a vreg.
|
// time we see a vreg.
|
||||||
if (interval.empty()) {
|
if (interval.empty()) {
|
||||||
// Remember if the definition can be rematerialized.
|
// Remember if the definition can be rematerialized.
|
||||||
if (EnableReMat &&
|
if (vi.DefInst && tii_->isReMaterializable(vi.DefInst->getOpcode()))
|
||||||
vi.DefInst && tii_->isReMaterializable(vi.DefInst->getOpcode()))
|
|
||||||
interval.remat = vi.DefInst;
|
interval.remat = vi.DefInst;
|
||||||
|
|
||||||
// Get the Idx of the defining instructions.
|
// Get the Idx of the defining instructions.
|
||||||
|
Reference in New Issue
Block a user