diff options
author | Chris Lattner <sabre@nondot.org> | 2005-10-20 16:56:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-10-20 16:56:40 +0000 |
commit | 35852fc391014f0b7b899fa37b18a90a0eada57e (patch) | |
tree | 33827aeba1ac88fdf92c080d7caeefc090b027c6 /llvm/lib/CodeGen | |
parent | eb0ad1863b7fb749695e6f19050f092d86ada1de (diff) | |
download | bcm5719-llvm-35852fc391014f0b7b899fa37b18a90a0eada57e.tar.gz bcm5719-llvm-35852fc391014f0b7b899fa37b18a90a0eada57e.zip |
Fix order of eval problem from when I refactored this into a function.
llvm-svn: 23844
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/LiveInterval.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp index 18faacf4450..50d8a259367 100644 --- a/llvm/lib/CodeGen/LiveInterval.cpp +++ b/llvm/lib/CodeGen/LiveInterval.cpp @@ -111,12 +111,11 @@ static inline bool NontrivialOverlap(const LiveRange &I, const LiveRange &J, if (I.ValId != iIdx || J.ValId != jIdx) return true; } else if (I.start < J.start) { - if (I.end > J.start && I.ValId != iIdx || J.ValId != jIdx) { + if (I.end > J.start && (I.ValId != iIdx || J.ValId != jIdx)) { return true; } } else { - if (J.end > I.start && - I.ValId != iIdx || J.ValId != jIdx) + if (J.end > I.start && (I.ValId != iIdx || J.ValId != jIdx)) return true; } |