summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SplitKit.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-02 23:05:19 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-02 23:05:19 +0000
commit4670353a21fbc6e8159a129cda965f256e73a451 (patch)
treef255083de47aafe8338406b2f5da3b2833525dca /lib/CodeGen/SplitKit.h
parente2dc0c978e2435dbbb55cb7fca7750034c3e292a (diff)
downloadllvm-4670353a21fbc6e8159a129cda965f256e73a451.tar.gz
llvm-4670353a21fbc6e8159a129cda965f256e73a451.tar.bz2
llvm-4670353a21fbc6e8159a129cda965f256e73a451.tar.xz
Transfer simply defined values directly without recomputing liveness and SSA.
Values that map to a single new value in a new interval after splitting don't need new PHIDefs, and if the parent value was never rematerialized the live range will be the same. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126894 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.h')
-rw-r--r--lib/CodeGen/SplitKit.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/SplitKit.h b/lib/CodeGen/SplitKit.h
index 3a4d710de9..05de150523 100644
--- a/lib/CodeGen/SplitKit.h
+++ b/lib/CodeGen/SplitKit.h
@@ -246,12 +246,16 @@ class SplitEditor {
SlotIndex Idx,
const MachineBasicBlock *IdxMBB);
+ /// transferSimpleValues - Transfer simply defined values to the new ranges.
+ /// Return true if any complex ranges were skipped.
+ bool transferSimpleValues();
+
/// extendPHIKillRanges - Extend the ranges of all values killed by original
/// parent PHIDefs.
void extendPHIKillRanges();
/// rewriteAssigned - Rewrite all uses of Edit.getReg() to assigned registers.
- void rewriteAssigned();
+ void rewriteAssigned(bool ExtendRanges);
/// rewriteComponents - Rewrite all uses of Intv[0] according to the eq
/// classes in ConEQ.