Skip to content

Commit 085587e

Browse files
Reland "[MLGO] Remove Python <3.8 from unsupported config (#106132)"
This reverts commit c3776c1. This relands commit a959d70. This was originally causing bot failures on Python version 3.8. This relanding fixes that by adjusting the relevant type annotations that are not supported in earlier versions.
1 parent 8e901c2 commit 085587e

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

llvm/test/CodeGen/MLRegAlloc/Inputs/interactive_main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
import interactive_host
33
import sys
44

5+
from typing import Sequence
56

67
def main(args):
78
# this advisor just picks the first legal register to evict, which is
89
# identifiable by the "mask" feature
910
class Advisor:
1011
to_return = False
1112

12-
def advice(self, tensor_values: list[log_reader.TensorValue]):
13+
def advice(self, tensor_values: Sequence[log_reader.TensorValue]):
1314
for tv in tensor_values:
1415
if tv.spec().name != "mask":
1516
continue

llvm/test/CodeGen/MLRegAlloc/lit.local.cfg

Lines changed: 0 additions & 3 deletions
This file was deleted.

llvm/test/Transforms/Inline/ML/lit.local.cfg

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)