Skip to content

Commit 6d62b98

Browse files
committed
Don't collect iterators when we don't need to.
1 parent 5c0ba31 commit 6d62b98

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Manifest.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ version = "1.3.0"
3939

4040
[[LLVM]]
4141
deps = ["CEnum", "LLVMExtra_jll", "Libdl", "Printf", "Unicode"]
42-
git-tree-sha1 = "effe3552dba16b1e9c3cc9beac454a3566f09637"
43-
repo-rev = "b4dfdfcf86dde4563c87e90d130c78dbbe8550f8"
42+
git-tree-sha1 = "97b3606f7e23cc7afd594d8a094f1f087f1d6511"
43+
repo-rev = "2c5db93"
4444
repo-url = "https://github.com/maleadt/LLVM.jl.git"
4545
uuid = "929cbde3-209d-540e-8aea-75f648917ca0"
4646
version = "4.2.0"

src/gcn.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function lower_throw_extra!(mod::LLVM.Module)
111111
end
112112

113113
# remove the call
114-
call_args = collect(operands(call))[1:end-1] # last arg is function itself
114+
call_args = operands(call)[1:end-1] # last arg is function itself
115115
unsafe_delete!(LLVM.parent(call), call)
116116

117117
# HACK: kill the exceptions' unused arguments

src/irgen.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ function lower_throw!(mod::LLVM.Module)
207207
end
208208

209209
# remove the call
210-
call_args = collect(operands(call))[1:end-1] # last arg is function itself
210+
call_args = operands(call)[1:end-1] # last arg is function itself
211211
unsafe_delete!(LLVM.parent(call), call)
212212

213213
# HACK: kill the exceptions' unused arguments
@@ -489,7 +489,7 @@ function lower_byval(@nospecialize(job::CompilerJob), mod::LLVM.Module, f::LLVM.
489489
# NOTE: we need global changes because LLVM 12 wants to clone debug metadata
490490

491491
# fall through
492-
br!(builder, collect(blocks(new_f))[2])
492+
br!(builder, blocks(new_f)[2])
493493
end
494494

495495
# remove the old function

src/optim.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ function lower_gc_frame!(fun::LLVM.Function)
242242
call = user(use)::LLVM.CallInst
243243

244244
# decode the call
245-
ops = collect(operands(call))
245+
ops = operands(call)
246246
sz = ops[2]
247247

248248
# replace with PTX alloc_obj

0 commit comments

Comments
 (0)