summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-07-10 22:25:21 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-07-10 22:25:21 +0000
commit4e996de58cfad27033165d8feb8f296b8cbe20ca (patch)
tree702f957a0860969b01d0051163e38eb51c9cd5ef /include
parent1f523dc45e29874bf8101e50b42ba707ffc8aff9 (diff)
downloadllvm-4e996de58cfad27033165d8feb8f296b8cbe20ca.tar.gz
llvm-4e996de58cfad27033165d8feb8f296b8cbe20ca.tar.bz2
llvm-4e996de58cfad27033165d8feb8f296b8cbe20ca.tar.xz
Teach the LiveInterval::join function to use the fast merge algorithm,
generalizing its implementation sufficiently to support this value number scenario as well. This cuts out another significant performance hit in large functions (over 10k basic blocks, etc), especially those with "natural" CFG structures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160026 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/LiveInterval.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h
index 83a3b43876..3fe7c8d58c 100644
--- a/include/llvm/CodeGen/LiveInterval.h
+++ b/include/llvm/CodeGen/LiveInterval.h
@@ -505,7 +505,7 @@ namespace llvm {
Ranges::iterator extendIntervalStartTo(Ranges::iterator I, SlotIndex NewStr);
void markValNoForDeletion(VNInfo *V);
void mergeIntervalRanges(const LiveInterval &RHS,
- VNInfo *LHSValNo,
+ VNInfo *LHSValNo = 0,
const VNInfo *RHSValNo = 0);
LiveInterval& operator=(const LiveInterval& rhs); // DO NOT IMPLEMENT