Skip to content

Conversation

@maleadt
Copy link
Member

@maleadt maleadt commented Jun 19, 2020

As suggested by @vtjnash:

julia> @code_llvm debuginfo=:none [1]

define nonnull %jl_value_t* @julia_vect_845(i64) {
top:
  %1 = call %jl_value_t* inttoptr (i64 139641304421472 to %jl_value_t* (%jl_value_t*, i64)*)(%jl_value_t* inttoptr (i64 139641129450176 to %jl_value_t*), i64 1)
  %2 = bitcast %jl_value_t* %1 to i64**
  %3 = load i64*, i64** %2, align 8
  store i64 %0, i64* %3, align 8
  ret %jl_value_t* %1
}

julia> @code_llvm raw=true debuginfo=:none [1]

define nonnull %jl_value_t addrspace(10)* @julia_vect_912(i64) !dbg !5 {
top:
  %1 = call %jl_value_t addrspace(10)* inttoptr (i64 139641304421472 to %jl_value_t addrspace(10)* (%jl_value_t addrspace(10)*, i64)*)(%jl_value_t addrspace(10)* addrspacecast (%jl_value_t* inttoptr (i64 139641129450176 to %jl_value_t*) to %jl_value_t addrspace(10)*), i64 1), !dbg !7
  %2 = addrspacecast %jl_value_t addrspace(10)* %1 to %jl_value_t addrspace(11)*, !dbg !18
  %3 = bitcast %jl_value_t addrspace(11)* %2 to i64 addrspace(13)* addrspace(11)*, !dbg !18
  %4 = load i64 addrspace(13)*, i64 addrspace(13)* addrspace(11)* %3, align 8, !dbg !18, !tbaa !20, !nonnull !4
  store i64 %0, i64 addrspace(13)* %4, align 8, !dbg !18, !tbaa !25
  ret %jl_value_t addrspace(10)* %1, !dbg !17
}

Respect the strip_ir_metadata/raw flags.
@Keno Keno merged commit 00c41cc into master Jun 19, 2020
@Keno Keno deleted the tb/addrspaces_review branch June 19, 2020 23:14
vtjnash added a commit that referenced this pull request Jul 9, 2020
We need to run the PassManager passes before we destroy important metadata.
vtjnash added a commit that referenced this pull request Jul 9, 2020
We need to run the PassManager passes before we destroy important metadata.
vtjnash added a commit that referenced this pull request Jul 10, 2020
We need to run the PassManager passes before we destroy important metadata.
simeonschaub pushed a commit to simeonschaub/julia that referenced this pull request Aug 11, 2020
Respect the strip_ir_metadata/raw flags.
simeonschaub pushed a commit to simeonschaub/julia that referenced this pull request Aug 11, 2020
We need to run the PassManager passes before we destroy important metadata.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants