Skip to content

Commit c71f5b6

Browse files
authored
Adapt to removal of CombineMulAdd pass. (#645)
1 parent 3445ea7 commit c71f5b6

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
version: ['1.10', 'pre', 'nightly']
21+
version: ['1.10', '1.11', 'nightly']
2222
os: [ubuntu-latest, macOS-latest, windows-latest]
2323
arch: [x64]
2424
llvm_args: ['']
2525
include:
2626
# starting with Julia 1.10, we can enable opaque pointers
27-
# from Juila 1.12 on, this is the default.
27+
# from Julia 1.12 on, this is the default.
2828
- version: '1.10'
2929
os: 'ubuntu-latest'
3030
arch: 'x64'
@@ -37,15 +37,15 @@ jobs:
3737
os: 'windows-latest'
3838
arch: 'x64'
3939
llvm_args: '--opaque-pointers'
40-
- version: 'pre'
40+
- version: '1.11'
4141
os: 'ubuntu-latest'
4242
arch: 'x64'
4343
llvm_args: '--opaque-pointers'
44-
- version: 'pre'
44+
- version: '1.11'
4545
os: 'macOS-latest'
4646
arch: 'x64'
4747
llvm_args: '--opaque-pointers'
48-
- version: 'pre'
48+
- version: '1.11'
4949
os: 'windows-latest'
5050
arch: 'x64'
5151
llvm_args: '--opaque-pointers'

src/optim.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,9 @@ end
266266
function buildCleanupPipeline(mpm, @nospecialize(job::CompilerJob), opt_level)
267267
if opt_level >= 2
268268
add!(mpm, NewPMFunctionPassManager()) do fpm
269-
add!(fpm, CombineMulAddPass())
269+
if VERSION < v"1.12.0-DEV.1390"
270+
add!(fpm, CombineMulAddPass())
271+
end
270272
add!(fpm, DivRemPairsPass())
271273
end
272274
end

0 commit comments

Comments
 (0)