From 35852fc391014f0b7b899fa37b18a90a0eada57e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 20 Oct 2005 16:56:40 +0000 Subject: Fix order of eval problem from when I refactored this into a function. llvm-svn: 23844 --- llvm/lib/CodeGen/LiveInterval.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/LiveInterval.cpp') 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; } -- cgit v1.2.3