diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-23 18:13:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-23 18:13:24 +0000 |
commit | ebd7e6c54dce754a88d8f38df4ac2f388f35435e (patch) | |
tree | 22ec2145b701694710528974645bb2f6ba7a8320 /lib/CodeGen/LiveInterval.h | |
parent | a3b8b5c0e0a1d0942288568b2012592184ca67c5 (diff) |
Instead of searching for a live interval pair, search for a location. This gives
a very modest speedup of .3 seconds compiling 176.gcc (out of 20s).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15136 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveInterval.h')
-rw-r--r-- | lib/CodeGen/LiveInterval.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveInterval.h b/lib/CodeGen/LiveInterval.h index 33bc036b66..d25f7e31a3 100644 --- a/lib/CodeGen/LiveInterval.h +++ b/lib/CodeGen/LiveInterval.h @@ -47,6 +47,11 @@ namespace llvm { }; std::ostream& operator<<(std::ostream& os, const LiveRange &LR); + inline bool operator<(unsigned V, const LiveRange &LR) { + return V < LR.start; + } + + /// LiveInterval - This class represents some number of live ranges for a /// register or value. This class also contains a bit of register allocator /// state. |