Skip to content

Commit 5be838f

Browse files
authored
Fix eqtable put (#2756)
* Jll bump * Fix eqtable put
1 parent 42478bc commit 5be838f

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ BFloat16s = "0.2, 0.3, 0.4, 0.5, 0.6"
4242
CEnum = "0.4, 0.5"
4343
ChainRulesCore = "1"
4444
EnzymeCore = "0.8.15"
45-
Enzyme_jll = "0.0.208"
45+
Enzyme_jll = "0.0.209"
4646
GPUArraysCore = "0.1.6, 0.2"
4747
GPUCompiler = "1.6.2"
4848
LLVM = "9.1"

src/rules/llvmrules.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,6 +1348,13 @@ end
13481348

13491349
newvals = API.CValueType[API.VT_Shadow, API.VT_Primal, API.VT_Shadow, API.VT_None]
13501350

1351+
newops = LLVM.Value[
1352+
shadowh,
1353+
new_from_original(gutils, origkey),
1354+
shadowval,
1355+
LLVM.null(value_type(originserted)),
1356+
]
1357+
13511358
shadowres = batch_call_same_with_inverted_arg_if_active!(B, gutils, orig, newops, newvals, false;
13521359
preprocess=eqtable_shadow_active) #=lookup=#
13531360

test/rules/internal_rules.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,6 @@ end
221221
end
222222
@testset "reverse" begin
223223
@testset for RT in (Const, Active,), Tx in (Const, Duplicated,)
224-
225-
# TODO see https://github.com/EnzymeAD/Enzyme/issues/2537
226-
if RT <: Const
227-
continue
228-
end
229-
230224
x = [4.0 3.0; 2.0 1.0]
231225
test_reverse(LinearAlgebra.det, RT, (x, Tx))
232226

0 commit comments

Comments
 (0)