aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/CodeGen/MachineStackSlotColoring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/lib/CodeGen/MachineStackSlotColoring.cpp')
-rw-r--r--backend/lib/CodeGen/MachineStackSlotColoring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/lib/CodeGen/MachineStackSlotColoring.cpp b/backend/lib/CodeGen/MachineStackSlotColoring.cpp
index b3b9af5..e60a7a2 100644
--- a/backend/lib/CodeGen/MachineStackSlotColoring.cpp
+++ b/backend/lib/CodeGen/MachineStackSlotColoring.cpp
@@ -178,7 +178,7 @@ collectSlotUses(MachineFunction &Function) {
[[nodiscard]] bool intervalsOverlap(const SlotInterval &Left, const SlotInterval &Right) noexcept {
if (Left.Block != Right.Block)
return true;
- return !(Left.Last < Right.First || Right.Last < Left.First);
+ return Left.Last >= Right.First && Right.Last >= Left.First;
}
struct StackColor final {