Skip to content

Commit 76a6663

Browse files
committed
fixes
1 parent 12b4c84 commit 76a6663

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/premerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
run: |
1919
wget https://apt.llvm.org/llvm.sh
2020
chmod +x llvm.sh
21-
sudo ./llvm.sh 20 all
21+
sudo ./llvm.sh 20
2222
sudo apt install libmlir-20-dev mlir-20-tools
2323
2424
- name: Configure CMake

src/executable/mlir/Target/PythonBytecode/TranslateToPythonBytecode.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,9 @@ struct LiveIntervalAnalysis
390390
bool overlaps(const LiveInterval &other) const
391391
{
392392
// naive quadratic search
393-
for (const auto &[start, end] : intervals) {
394-
for (const auto &[other_start, other_end] : other.intervals) {
395-
if (other_start >= start && other_start <= end) { return true; }
396-
if (other_end >= start && other_end <= end) { return true; }
393+
for (const auto &[a, b] : intervals) {
394+
for (const auto &[c, d] : other.intervals) {
395+
if (a < d && c < b) { return true; }
397396
}
398397
}
399398

0 commit comments

Comments
 (0)