1- From 243665861478f19406709f6af417fed8858a256d Mon Sep 17 00:00:00 2001
1+ From 3053e421e4bbf27f1675fe4a28741f5a7d86ef91 Mon Sep 17 00:00:00 2001
2233Date: Fri, 8 Nov 2024 21:02:11 +0000
44Subject: [PATCH] 2f50b280dc8e995ef67ad31a5f71adc4c270890d
@@ -8,16 +8,15 @@ Subject: [PATCH] 2f50b280dc8e995ef67ad31a5f71adc4c270890d
88 src/llvm-alloc-opt.cpp | 10 +++++-----
99 src/llvm-julia-licm.cpp | 2 +-
1010 src/llvm-late-gc-lowering.cpp | 22 +++++++++++-----------
11- src/llvm-lower-handlers.cpp | 14 +++++++-------
1211 src/llvm-multiversioning.cpp | 6 +++---
1312 src/llvm-ptls.cpp | 4 ++--
14- 7 files changed, 30 insertions(+), 30 deletions(-)
13+ 6 files changed, 23 insertions(+), 23 deletions(-)
1514
1615diff --git a/src/codegen.cpp b/src/codegen.cpp
17- index 39b5770e11..8df985bd6d 100644
16+ index 171194871a..f22f571cbf 100644
1817--- a/src/codegen.cpp
1918+++ b/src/codegen.cpp
20- @@ -2362 ,7 +2362 ,7 @@ static GlobalVariable *get_pointer_to_constant(jl_codegen_params_t &emission_con
19+ @@ -2352 ,7 +2352 ,7 @@ static GlobalVariable *get_pointer_to_constant(jl_codegen_params_t &emission_con
2120 static AllocaInst *emit_static_alloca(jl_codectx_t &ctx, Type *lty, Align align)
2221 {
2322 ++EmittedAllocas;
@@ -180,52 +179,6 @@ index a254ecafab..e03fbd8ccd 100644
180179 (void)shadowStore;
181180 // TODO: shadowStore->setMetadata(LLVMContext::MD_tbaa, tbaa_gcframe);
182181 AllocaSlot++;
183- diff --git a/src/llvm-lower-handlers.cpp b/src/llvm-lower-handlers.cpp
184- index c359bf6c11..5beeedfd05 100644
185- --- a/src/llvm-lower-handlers.cpp
186- +++ b/src/llvm-lower-handlers.cpp
187- @@ -171,7 +171,7 @@ static bool lowerExcHandlers(Function &F) {
188- unsigned allocaAddressSpace = F.getParent()->getDataLayout().getAllocaAddrSpace();
189- for (int i = 0; i < MaxDepth; ++i) {
190- auto *buff = new AllocaInst(Type::getInt8Ty(F.getContext()), allocaAddressSpace,
191- - handler_sz, Align(16), "", firstInst);
192- + handler_sz, Align(16), "", firstInst->getIterator());
193- if (allocaAddressSpace) {
194- AddrSpaceCastInst *buff_casted = new AddrSpaceCastInst(buff, PointerType::get(F.getContext(), AddressSpace::Generic));
195- buff_casted->insertAfter(buff);
196- @@ -186,17 +186,17 @@ static bool lowerExcHandlers(Function &F) {
197- assert(it.second >= 0);
198- Instruction *buff = buffs[it.second];
199- CallInst *enter = it.first;
200- - auto new_enter = CallInst::Create(jlenter_func, {enter->getArgOperand(0), buff}, "", enter);
201- + auto new_enter = CallInst::Create(jlenter_func, {enter->getArgOperand(0), buff}, "", enter->getIterator());
202- Value *lifetime_args[] = {
203- handler_sz64,
204- buff
205- };
206- - CallInst::Create(lifetime_start, lifetime_args, "", new_enter);
207- + CallInst::Create(lifetime_start, lifetime_args, "", new_enter->getIterator());
208- CallInst *sj;
209- if (!TT.isOSWindows()) {
210- - sj = CallInst::Create(setjmp_func, {buff, ConstantInt::get(Type::getInt32Ty(F.getContext()), 0)}, "", enter);
211- + sj = CallInst::Create(setjmp_func, {buff, ConstantInt::get(Type::getInt32Ty(F.getContext()), 0)}, "", enter->getIterator());
212- } else {
213- - sj = CallInst::Create(setjmp_func, buff, "", enter);
214- + sj = CallInst::Create(setjmp_func, buff, "", enter->getIterator());
215- }
216- // We need to mark this on the call site as well. See issue #6757
217- sj->setCanReturnTwice();
218- @@ -219,8 +219,8 @@ static bool lowerExcHandlers(Function &F) {
219- for (auto *EEI : ToErase)
220- EEI->eraseFromParent();
221- if (!enter->use_empty()) {
222- - Value *agg = InsertValueInst::Create(UndefValue::get(enter->getType()), sj, ArrayRef<unsigned>(0), "", enter);
223- - agg = InsertValueInst::Create(agg, buff, ArrayRef<unsigned>(1), "", enter);
224- + Value *agg = InsertValueInst::Create(UndefValue::get(enter->getType()), sj, ArrayRef<unsigned>(0), "", enter->getIterator());
225- + agg = InsertValueInst::Create(agg, buff, ArrayRef<unsigned>(1), "", enter->getIterator());
226- enter->replaceAllUsesWith(agg);
227- }
228- enter->eraseFromParent();
229182diff --git a/src/llvm-multiversioning.cpp b/src/llvm-multiversioning.cpp
230183index a76d076ebd..2961a77e08 100644
231184--- a/src/llvm-multiversioning.cpp
0 commit comments