diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 98b4962..050ef1a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -24,7 +24,7 @@ jobs: matrix: version: - '1.10' - - '1.6' + - '1.7' - 'nightly' os: - ubuntu-latest diff --git a/README.md b/README.md index f73e037..5d2e1cf 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,9 @@ f1 (generic function with 1 method) julia> @code_diff type=:llvm debuginfo=:none f1(Int64(1)) f1(Int8(1)) define i64 @f1(i64 signext %0) #0 { ⟪╋⟫define i64 @f1(i8 signext %0) #0 { top: ┃ top: + ┣⟫ %1 = sext i8 %0 to i64 %1 = add i64 %0, 1 ⟪╋⟫ %2 = add nsw i64 %1, 1 ret i64 %1 ⟪╋⟫ ret i64 %2 - ┣⟫ %1 = sext i8 %0 to i64 } ┃ } julia> f2(a) = a - 1 diff --git a/docs/src/index.md b/docs/src/index.md index 647c3ef..41cae0b 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -25,9 +25,9 @@ f1 (generic function with 1 method) julia> @code_diff type=:llvm debuginfo=:none color=false f1(Int64(1)) f1(Int8(1)) define i64 @f1(i64 signext %0) #0 { ⟪╋⟫define i64 @f1(i8 signext %0) #0 { top: ┃ top: + ┣⟫ %1 = sext i8 %0 to i64 %1 = add i64 %0, 1 ⟪╋⟫ %2 = add nsw i64 %1, 1 ret i64 %1 ⟪╋⟫ ret i64 %2 - ┣⟫ %1 = sext i8 %0 to i64 } ┃ } julia> f2(a) = a - 1 diff --git a/src/compare.jl b/src/compare.jl index 167c394..bd07d10 100644 --- a/src/compare.jl +++ b/src/compare.jl @@ -60,11 +60,7 @@ function replace_llvm_module_name(code::AbstractString, function_name) # See 'get_function_name' in 'julia/src/codegen.cpp' function_name = function_name[2:end] end - if v"1.7-" ≤ VERSION - func_re = Regex("(?>julia|japi3|japi1)_\\Q$(function_name)\\E_(\\d+)") - else - func_re = Regex("(?>julia|japi3|japi1)_$(function_name)_(\\d+)") - end + func_re = Regex("(?>julia|japi3|japi1)_\\Q$(function_name)\\E_(\\d+)") return replace(code, func_re => function_name) end