Optimize LiveIntervals::intervalIsInOneMBB().
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 10 Feb 2012 01:23:55 +0000 (01:23 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 10 Feb 2012 01:23:55 +0000 (01:23 +0000)
commitebf2750a70df4261d3e66144ea6bcb49d41f6efb
treea2606b3d7daa2497a208ccdb02e101ee37a82680
parentf378f5fae3b7c35fc0f8996accf121ffe59093e2
Optimize LiveIntervals::intervalIsInOneMBB().

No looping and binary searches necessary.

Return a pointer to the containing block instead of just a bool.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150218 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LiveIntervalAnalysis.h
lib/CodeGen/LiveIntervalAnalysis.cpp