[llvm-branch-commits] [llvm] [BOLT] Add binary introspection/JIT manager (PR #81346)

2024-02-09 Thread Amir Ayupov via llvm-branch-commits
@@ -0,0 +1,105 @@ +//===- bolt/Rewrite/JITRewriteInstance.h - in-memory rewriter ---*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[llvm-branch-commits] [llvm] [BOLT] Add binary introspection/JIT manager (PR #81346)

2024-02-09 Thread Rafael Auler via llvm-branch-commits
rafaelauler wrote: Depends on #81082 https://github.com/llvm/llvm-project/pull/81346 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [BOLT] Add binary introspection/JIT manager (PR #81346)

2024-02-09 Thread Rafael Auler via llvm-branch-commits
https://github.com/rafaelauler created https://github.com/llvm/llvm-project/pull/81346 Add a class that allows a process to introspect or investigate itself by disassembling its memory contents just-in-time with BOLT. An example is shown in a new unittest binary. This leverages the new

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Fangrui Song via llvm-branch-commits
MaskRay wrote: > Why not condition this on `-no-pic`, and keep the previous more-optimal > layout for the normal case? The motivation is to avoid layout differences between `-no-pie` and `-pie/-shared`. If someone uses a linker script fragment with `INSERT`, it would be difficult if there

[llvm-branch-commits] [openmp] release/18.x: [OpenMP] [cmake] Don't use -fno-semantic-interposition on Windows (#81113) (PR #81332)

2024-02-09 Thread via llvm-branch-commits
https://github.com/llvmbot updated https://github.com/llvm/llvm-project/pull/81332 >From 47ec6be2d071e18111642473c70b96f5025dcef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 8 Feb 2024 15:28:46 +0200 Subject: [PATCH] [OpenMP] [cmake] Don't use

[llvm-branch-commits] [openmp] release/18.x: [OpenMP] [cmake] Don't use -fno-semantic-interposition on Windows (#81113) (PR #81332)

2024-02-09 Thread via llvm-branch-commits
llvmbot wrote: @jhuber6 What do you think about merging this PR to the release branch? https://github.com/llvm/llvm-project/pull/81332 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org

[llvm-branch-commits] [openmp] release/18.x: [OpenMP] [cmake] Don't use -fno-semantic-interposition on Windows (#81113) (PR #81332)

2024-02-09 Thread via llvm-branch-commits
https://github.com/llvmbot milestoned https://github.com/llvm/llvm-project/pull/81332 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [openmp] release/18.x: [OpenMP] [cmake] Don't use -fno-semantic-interposition on Windows (#81113) (PR #81332)

2024-02-09 Thread via llvm-branch-commits
https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/81332 Backport 72f04fa0734f8559ad515f507a4a3ce3f461f196 Requested by: @mstorsjo >From 9b34418e0883dba29b79a2c843055c7d7e632070 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 8 Feb 2024

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread James Y Knight via llvm-branch-commits
jyknight wrote: Why not condition this on `-no-pic`, and keep the previous more-optimal layout for the normal case? https://github.com/llvm/llvm-project/pull/81224 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Fangrui Song via llvm-branch-commits
https://github.com/MaskRay updated https://github.com/llvm/llvm-project/pull/81224 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Fangrui Song via llvm-branch-commits
https://github.com/MaskRay updated https://github.com/llvm/llvm-project/pull/81224 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Fangrui Song via llvm-branch-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/81224 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Fangrui Song via llvm-branch-commits
@@ -1103,31 +1106,36 @@ template void Writer::setReservedSymbolSections() { } PhdrEntry *last = nullptr; - PhdrEntry *lastRO = nullptr; - + OutputSection *lastRO = nullptr; + auto isLarge = [](OutputSection *osec) { +return config->emachine == EM_X86_64 &&

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Arthur Eubanks via llvm-branch-commits
https://github.com/aeubanks approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/81224 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Arthur Eubanks via llvm-branch-commits
@@ -1103,31 +1106,36 @@ template void Writer::setReservedSymbolSections() { } PhdrEntry *last = nullptr; - PhdrEntry *lastRO = nullptr; - + OutputSection *lastRO = nullptr; + auto isLarge = [](OutputSection *osec) { +return config->emachine == EM_X86_64 &&

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Arthur Eubanks via llvm-branch-commits
https://github.com/aeubanks edited https://github.com/llvm/llvm-project/pull/81224 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] PR for llvm/llvm-project#79718 (PR #81241)

2024-02-09 Thread Tom Stellard via llvm-branch-commits
https://github.com/tstellar closed https://github.com/llvm/llvm-project/pull/81241 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] 391d948 - [RegisterCoalescer] Clear instructions not recorded in `ErasedInstrs` but erased (#79820)

2024-02-09 Thread Tom Stellard via llvm-branch-commits
Author: Quentin Dian Date: 2024-02-09T13:29:49-08:00 New Revision: 391d948748ffae0b79305773ed9b50e86bd29215 URL: https://github.com/llvm/llvm-project/commit/391d948748ffae0b79305773ed9b50e86bd29215 DIFF: https://github.com/llvm/llvm-project/commit/391d948748ffae0b79305773ed9b50e86bd29215.diff

[llvm-branch-commits] [llvm] PR for llvm/llvm-project#79718 (PR #81241)

2024-02-09 Thread via llvm-branch-commits
https://github.com/llvmbot updated https://github.com/llvm/llvm-project/pull/81241 >From 391d948748ffae0b79305773ed9b50e86bd29215 Mon Sep 17 00:00:00 2001 From: Quentin Dian Date: Fri, 9 Feb 2024 15:29:05 +0800 Subject: [PATCH] [RegisterCoalescer] Clear instructions not recorded in

[llvm-branch-commits] [llvm] PR for llvm/llvm-project#80831 (PR #81126)

2024-02-09 Thread Tom Stellard via llvm-branch-commits
https://github.com/tstellar closed https://github.com/llvm/llvm-project/pull/81126 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] d079fec - [X86] Fix lowering TLS under darwin large code model (#80907)

2024-02-09 Thread Tom Stellard via llvm-branch-commits
Author: Arthur Eubanks Date: 2024-02-09T13:28:23-08:00 New Revision: d079fec440081f3e8e0a79dbbde2066cca077f77 URL: https://github.com/llvm/llvm-project/commit/d079fec440081f3e8e0a79dbbde2066cca077f77 DIFF:

[llvm-branch-commits] [llvm] PR for llvm/llvm-project#80831 (PR #81126)

2024-02-09 Thread via llvm-branch-commits
https://github.com/llvmbot updated https://github.com/llvm/llvm-project/pull/81126 >From d079fec440081f3e8e0a79dbbde2066cca077f77 Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Wed, 7 Feb 2024 10:16:36 -0700 Subject: [PATCH] [X86] Fix lowering TLS under darwin large code model (#80907)

[llvm-branch-commits] [clang] PR for llvm/llvm-project#81104 (PR #81106)

2024-02-09 Thread Tom Stellard via llvm-branch-commits
https://github.com/tstellar closed https://github.com/llvm/llvm-project/pull/81106 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] 8b2cb5f - Revert "[clang] Mark clang-format-ignore.cpp as unsupported on Windows"

2024-02-09 Thread Tom Stellard via llvm-branch-commits
Author: Owen Pan Date: 2024-02-09T13:26:28-08:00 New Revision: 8b2cb5f716f0367d98ceaba4b9505cc99aab0b7e URL: https://github.com/llvm/llvm-project/commit/8b2cb5f716f0367d98ceaba4b9505cc99aab0b7e DIFF: https://github.com/llvm/llvm-project/commit/8b2cb5f716f0367d98ceaba4b9505cc99aab0b7e.diff

[llvm-branch-commits] [clang] PR for llvm/llvm-project#81104 (PR #81106)

2024-02-09 Thread via llvm-branch-commits
https://github.com/llvmbot updated https://github.com/llvm/llvm-project/pull/81106 >From 8b2cb5f716f0367d98ceaba4b9505cc99aab0b7e Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Tue, 6 Feb 2024 09:00:15 -0800 Subject: [PATCH] Revert "[clang] Mark clang-format-ignore.cpp as unsupported on

[llvm-branch-commits] [clang] PR for llvm/llvm-project#80628 (PR #81096)

2024-02-09 Thread Tom Stellard via llvm-branch-commits
https://github.com/tstellar closed https://github.com/llvm/llvm-project/pull/81096 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] 0135e04 - [clang-format] Fix a regression in dumping the config (#80628)

2024-02-09 Thread Tom Stellard via llvm-branch-commits
Author: Owen Pan Date: 2024-02-09T13:24:35-08:00 New Revision: 0135e048a1a0105d5842c3506345211c54001c54 URL: https://github.com/llvm/llvm-project/commit/0135e048a1a0105d5842c3506345211c54001c54 DIFF: https://github.com/llvm/llvm-project/commit/0135e048a1a0105d5842c3506345211c54001c54.diff

[llvm-branch-commits] [clang] PR for llvm/llvm-project#80628 (PR #81096)

2024-02-09 Thread via llvm-branch-commits
https://github.com/llvmbot updated https://github.com/llvm/llvm-project/pull/81096 >From 0135e048a1a0105d5842c3506345211c54001c54 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Wed, 7 Feb 2024 21:35:43 -0800 Subject: [PATCH] [clang-format] Fix a regression in dumping the config (#80628)

[llvm-branch-commits] [libunwind] PR for llvm/llvm-project#81084 (PR #81085)

2024-02-09 Thread Tom Stellard via llvm-branch-commits
https://github.com/tstellar closed https://github.com/llvm/llvm-project/pull/81085 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [libunwind] 2b033a3 - MIPS/libunwind: Use -mfp64 if compiler is FPXX (#68521)

2024-02-09 Thread Tom Stellard via llvm-branch-commits
Author: YunQiang Su Date: 2024-02-09T13:22:24-08:00 New Revision: 2b033a32ea1b45c773158f67b48623ceffbb153d URL: https://github.com/llvm/llvm-project/commit/2b033a32ea1b45c773158f67b48623ceffbb153d DIFF: https://github.com/llvm/llvm-project/commit/2b033a32ea1b45c773158f67b48623ceffbb153d.diff

[llvm-branch-commits] [libunwind] PR for llvm/llvm-project#81084 (PR #81085)

2024-02-09 Thread via llvm-branch-commits
https://github.com/llvmbot updated https://github.com/llvm/llvm-project/pull/81085 >From 2b033a32ea1b45c773158f67b48623ceffbb153d Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Thu, 8 Feb 2024 09:15:53 +0800 Subject: [PATCH] MIPS/libunwind: Use -mfp64 if compiler is FPXX (#68521) Libunwind

[llvm-branch-commits] [clang] PR for llvm/llvm-project#80961 (PR #80962)

2024-02-09 Thread Tom Stellard via llvm-branch-commits
https://github.com/tstellar closed https://github.com/llvm/llvm-project/pull/80962 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] a8158d8 - [clang] Fix unexpected `-Wconstant-logical-operand` in C23 (#80724)

2024-02-09 Thread Tom Stellard via llvm-branch-commits
Author: Mariya Podchishchaeva Date: 2024-02-09T13:20:35-08:00 New Revision: a8158d8836e94ede76ea0cc749da2583511b7d89 URL: https://github.com/llvm/llvm-project/commit/a8158d8836e94ede76ea0cc749da2583511b7d89 DIFF:

[llvm-branch-commits] [clang] PR for llvm/llvm-project#80961 (PR #80962)

2024-02-09 Thread via llvm-branch-commits
https://github.com/llvmbot updated https://github.com/llvm/llvm-project/pull/80962 >From a8158d8836e94ede76ea0cc749da2583511b7d89 Mon Sep 17 00:00:00 2001 From: Mariya Podchishchaeva Date: Tue, 6 Feb 2024 15:57:35 +0300 Subject: [PATCH] [clang] Fix unexpected `-Wconstant-logical-operand` in

[llvm-branch-commits] [compiler-rt] PR for llvm/llvm-project#79283 (PR #80068)

2024-02-09 Thread Tom Stellard via llvm-branch-commits
https://github.com/tstellar closed https://github.com/llvm/llvm-project/pull/80068 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [compiler-rt] e6fa3ff - [dfsan] Wrap glibc 2.38 __isoc23_* functions (#79958)

2024-02-09 Thread Tom Stellard via llvm-branch-commits
Author: Fangrui Song Date: 2024-02-09T13:18:45-08:00 New Revision: e6fa3ff6cc43f78000e56996a45f83acf53d2536 URL: https://github.com/llvm/llvm-project/commit/e6fa3ff6cc43f78000e56996a45f83acf53d2536 DIFF: https://github.com/llvm/llvm-project/commit/e6fa3ff6cc43f78000e56996a45f83acf53d2536.diff

[llvm-branch-commits] [compiler-rt] PR for llvm/llvm-project#79283 (PR #80068)

2024-02-09 Thread via llvm-branch-commits
https://github.com/llvmbot updated https://github.com/llvm/llvm-project/pull/80068 >From e6fa3ff6cc43f78000e56996a45f83acf53d2536 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 30 Jan 2024 13:58:40 -0800 Subject: [PATCH] [dfsan] Wrap glibc 2.38 __isoc23_* functions (#79958) Fix

[llvm-branch-commits] [clang] PR for llvm/llvm-project#80844 (PR #80846)

2024-02-09 Thread Tom Stellard via llvm-branch-commits
https://github.com/tstellar closed https://github.com/llvm/llvm-project/pull/80846 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Fangrui Song via llvm-branch-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/81224 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Fangrui Song via llvm-branch-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/81224 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Fangrui Song via llvm-branch-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/81224 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Fangrui Song via llvm-branch-commits
@@ -1103,31 +1106,36 @@ template void Writer::setReservedSymbolSections() { } PhdrEntry *last = nullptr; - PhdrEntry *lastRO = nullptr; - + OutputSection *lastRO = nullptr; + auto isLarge = [](OutputSection *osec) { +return config->emachine == EM_X86_64 &&

[llvm-branch-commits] [mlir] [mlir][Transforms][NFC] Modularize block actions (PR #81237)

2024-02-09 Thread Mehdi Amini via llvm-branch-commits
@@ -820,6 +740,238 @@ void ArgConverter::insertConversion(Block *newBlock, conversionInfo.insert({newBlock, std::move(info)}); } +//===--===// +// RewriteAction joker-eph wrote: Mentioned

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Fangrui Song via llvm-branch-commits
@@ -1124,11 +1127,15 @@ template void Writer::setReservedSymbolSections() { } if (last) { -// _edata points to the end of the last mapped initialized section. +// _edata points to the end of the last mapped initialized section before MaskRay

[llvm-branch-commits] [mlir] [mlir][Transforms] Support `moveOpBefore`/`After` in dialect conversion (PR #81240)

2024-02-09 Thread Mehdi Amini via llvm-branch-commits
https://github.com/joker-eph approved this pull request. https://github.com/llvm/llvm-project/pull/81240 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [mlir] [mlir][Transforms] Support `moveOpBefore`/`After` in dialect conversion (PR #81240)

2024-02-09 Thread Mehdi Amini via llvm-branch-commits
@@ -970,6 +971,54 @@ class BlockTypeConversionAction : public BlockAction { void rollback() override; }; + +/// An operation rewrite. joker-eph wrote: Can you expand on the role of the class, the context where it's used? The "Action" name for this whole

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Fangrui Song via llvm-branch-commits
https://github.com/MaskRay updated https://github.com/llvm/llvm-project/pull/81224 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Fangrui Song via llvm-branch-commits
https://github.com/MaskRay updated https://github.com/llvm/llvm-project/pull/81224 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Fangrui Song via llvm-branch-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/81224 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [SROA] Use !tbaa instead of !tbaa.struct if op matches field. (PR #81289)

2024-02-09 Thread Florian Hahn via llvm-branch-commits
fhahn wrote: > Hmm. 10 changes + 1 new usage of setAAMetaData, But only 4 relevant changes > in tests.. That part of SROA seems to lack some testing ? Yes, will add the missing coverage, just wanted to make sure this makes sense in general beforehand

[llvm-branch-commits] [llvm] [SROA] Use !tbaa instead of !tbaa.struct if op matches field. (PR #81289)

2024-02-09 Thread Florian Hahn via llvm-branch-commits
@@ -7,9 +7,9 @@ define void @load_store_transfer_split_struct_tbaa_2_float(ptr dereferenceable(2 ; CHECK-NEXT: entry: ; CHECK-NEXT:[[TMP0:%.*]] = bitcast float [[A]] to i32 ; CHECK-NEXT:[[TMP1:%.*]] = bitcast float [[B]] to i32 -; CHECK-NEXT:store i32 [[TMP0]],

[llvm-branch-commits] [llvm] [TBAA] Use !tbaa for first accessed field, even if there are others. (PR #81313)

2024-02-09 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms @llvm/pr-subscribers-llvm-analysis Author: Florian Hahn (fhahn) Changes Motivation for this and follow-on patches is to improve codegen for libc++, where using memcpy limits optimizations, like vectorization for code iteration over

[llvm-branch-commits] [llvm] [TBAA] Only clear TBAAStruct if field can be extracted. (PR #81285)

2024-02-09 Thread Florian Hahn via llvm-branch-commits
@@ -821,13 +821,15 @@ MDNode *AAMDNodes::extendToTBAA(MDNode *MD, ssize_t Len) { AAMDNodes AAMDNodes::adjustForAccess(unsigned AccessSize) { AAMDNodes New = *this; MDNode *M = New.TBAAStruct; - New.TBAAStruct = nullptr; if (M && M->getNumOperands() == 3 &&

[llvm-branch-commits] [llvm] [TBAA] Use !tbaa for first accessed field, even if there are others. (PR #81313)

2024-02-09 Thread Florian Hahn via llvm-branch-commits
https://github.com/fhahn created https://github.com/llvm/llvm-project/pull/81313 Motivation for this and follow-on patches is to improve codegen for libc++, where using memcpy limits optimizations, like vectorization for code iteration over std::vector>: https://godbolt.org/z/f3vqYos3c

[llvm-branch-commits] [llvm] [TBAA] Only clear TBAAStruct if field can be extracted. (PR #81285)

2024-02-09 Thread Florian Hahn via llvm-branch-commits
@@ -821,13 +821,15 @@ MDNode *AAMDNodes::extendToTBAA(MDNode *MD, ssize_t Len) { AAMDNodes AAMDNodes::adjustForAccess(unsigned AccessSize) { AAMDNodes New = *this; MDNode *M = New.TBAAStruct; - New.TBAAStruct = nullptr; if (M && M->getNumOperands() == 3 &&

[llvm-branch-commits] [llvm] [SROA] Use !tbaa instead of !tbaa.struct if op matches field. (PR #81289)

2024-02-09 Thread via llvm-branch-commits
dobbelaj-snps wrote: Hmm. 10 changes + 1 new usage of setAAMetaData, But only 4 relevant changes in tests.. That part of SROA might seems to lack some testing ? https://github.com/llvm/llvm-project/pull/81289 ___ llvm-branch-commits mailing list

[llvm-branch-commits] [llvm] [SROA] Use !tbaa instead of !tbaa.struct if op matches field. (PR #81289)

2024-02-09 Thread via llvm-branch-commits
@@ -7,9 +7,9 @@ define void @load_store_transfer_split_struct_tbaa_2_float(ptr dereferenceable(2 ; CHECK-NEXT: entry: ; CHECK-NEXT:[[TMP0:%.*]] = bitcast float [[A]] to i32 ; CHECK-NEXT:[[TMP1:%.*]] = bitcast float [[B]] to i32 -; CHECK-NEXT:store i32 [[TMP0]],

[llvm-branch-commits] [llvm] [SROA] Use !tbaa instead of !tbaa.struct if op matches field. (PR #81289)

2024-02-09 Thread via llvm-branch-commits
@@ -4561,6 +4577,10 @@ bool SROA::presplitLoadsAndStores(AllocaInst , AllocaSlices ) { PStore->copyMetadata(*SI, {LLVMContext::MD_mem_parallel_loop_access, LLVMContext::MD_access_group,

[llvm-branch-commits] [llvm] [TBAA] Only clear TBAAStruct if field can be extracted. (PR #81285)

2024-02-09 Thread via llvm-branch-commits
@@ -821,13 +821,15 @@ MDNode *AAMDNodes::extendToTBAA(MDNode *MD, ssize_t Len) { AAMDNodes AAMDNodes::adjustForAccess(unsigned AccessSize) { AAMDNodes New = *this; MDNode *M = New.TBAAStruct; - New.TBAAStruct = nullptr; if (M && M->getNumOperands() == 3 &&

[llvm-branch-commits] [llvm] [TBAA] Only clear TBAAStruct if field can be extracted. (PR #81285)

2024-02-09 Thread via llvm-branch-commits
dobbelaj-snps wrote: IMHO this testcase should be adapted to always take the tail of the lines into account for FileCheck. (aka, to ensure that lines that we do not expect to have a !tbaa.struct metadata check that) https://github.com/llvm/llvm-project/pull/81285

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Fangrui Song via llvm-branch-commits
@@ -988,10 +991,10 @@ static unsigned getSectionRank(OutputSection ) { osec.relro = true; else rank |= RF_NOT_RELRO; -// Place .ldata and .lbss after .bss. Making .bss closer to .text alleviates -// relocation overflow pressure. +// Place

[llvm-branch-commits] [llvm] [SROA] Use !tbaa instead of !tbaa.struct if op matches field. (PR #81289)

2024-02-09 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir @llvm/pr-subscribers-llvm-transforms Author: Florian Hahn (fhahn) Changes If a split memory access introduced by SROA accesses precisely a single field of the original operation's !tbaa.struct, use the !tbaa tag for the accessed field directly

[llvm-branch-commits] [llvm] [SROA] Use !tbaa instead of !tbaa.struct if op matches field. (PR #81289)

2024-02-09 Thread Florian Hahn via llvm-branch-commits
https://github.com/fhahn created https://github.com/llvm/llvm-project/pull/81289 If a split memory access introduced by SROA accesses precisely a single field of the original operation's !tbaa.struct, use the !tbaa tag for the accessed field directly instead of the full !tbaa.struct.

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Arthur Eubanks via llvm-branch-commits
aeubanks wrote: thanks for doing this! https://github.com/llvm/llvm-project/pull/81224 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Arthur Eubanks via llvm-branch-commits
@@ -1124,11 +1127,15 @@ template void Writer::setReservedSymbolSections() { } if (last) { -// _edata points to the end of the last mapped initialized section. +// _edata points to the end of the last mapped initialized section before aeubanks

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Arthur Eubanks via llvm-branch-commits
@@ -988,10 +991,10 @@ static unsigned getSectionRank(OutputSection ) { osec.relro = true; else rank |= RF_NOT_RELRO; -// Place .ldata and .lbss after .bss. Making .bss closer to .text alleviates -// relocation overflow pressure. +// Place

[llvm-branch-commits] [llvm] [TBAA] Only clear TBAAStruct if field can be extracted. (PR #81285)

2024-02-09 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms @llvm/pr-subscribers-llvm-analysis Author: Florian Hahn (fhahn) Changes Retain TBAAStruct if we fail to match the access to a single field. All users at the moment use this when using the full size of the original access. SROA also

[llvm-branch-commits] [llvm] [TBAA] Only clear TBAAStruct if field can be extracted. (PR #81285)

2024-02-09 Thread Florian Hahn via llvm-branch-commits
https://github.com/fhahn created https://github.com/llvm/llvm-project/pull/81285 Retain TBAAStruct if we fail to match the access to a single field. All users at the moment use this when using the full size of the original access. SROA also retains the original TBAAStruct when accessing parts

[llvm-branch-commits] [llvm] PR for llvm/llvm-project#79718 (PR #81241)

2024-02-09 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/81241 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Peter Smith via llvm-branch-commits
https://github.com/smithp35 commented: Matching GNU ld seems sensible to me, although best get this reviewed by someone with an X86_64 background. https://github.com/llvm/llvm-project/pull/81224 ___ llvm-branch-commits mailing list

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Peter Smith via llvm-branch-commits
https://github.com/smithp35 edited https://github.com/llvm/llvm-project/pull/81224 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [ELF] Place .lbss/.lrodata/.ldata after .bss (PR #81224)

2024-02-09 Thread Peter Smith via llvm-branch-commits
@@ -1124,11 +1127,15 @@ template void Writer::setReservedSymbolSections() { } if (last) { -// _edata points to the end of the last mapped initialized section. +// _edata points to the end of the last mapped initialized section before smithp35

[llvm-branch-commits] [mlir] [mlir][Transforms][NFC] Turn in-place op modifications into `RewriteAction`s (PR #81245)

2024-02-09 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-mlir-core @llvm/pr-subscribers-mlir Author: Matthias Springer (matthias-springer) Changes This commit simplifies the internal state of the dialect conversion. A separate field for the previous state of in-place op modifications is no longer needed.

[llvm-branch-commits] [mlir] [mlir][Transforms][NFC] Turn in-place op modifications into `RewriteAction`s (PR #81245)

2024-02-09 Thread Matthias Springer via llvm-branch-commits
https://github.com/matthias-springer created https://github.com/llvm/llvm-project/pull/81245 This commit simplifies the internal state of the dialect conversion. A separate field for the previous state of in-place op modifications is no longer needed. >From

[llvm-branch-commits] [llvm] PR for llvm/llvm-project#79718 (PR #81241)

2024-02-09 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-regalloc Author: None (llvmbot) Changes resolves llvm/llvm-project#79718 --- Full diff: https://github.com/llvm/llvm-project/pull/81241.diff 3 Files Affected: - (modified) llvm/lib/CodeGen/RegisterCoalescer.cpp (+22-5) - (added)

[llvm-branch-commits] [llvm] PR for llvm/llvm-project#79718 (PR #81241)

2024-02-09 Thread via llvm-branch-commits
llvmbot wrote: @arsenm What do you think about merging this PR to the release branch? https://github.com/llvm/llvm-project/pull/81241 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org

[llvm-branch-commits] [llvm] PR for llvm/llvm-project#79718 (PR #81241)

2024-02-09 Thread via llvm-branch-commits
https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/81241 resolves llvm/llvm-project#79718 >From 6be29b485c73478cf98fde223cbb5ba440dca464 Mon Sep 17 00:00:00 2001 From: Quentin Dian Date: Fri, 9 Feb 2024 15:29:05 +0800 Subject: [PATCH] [RegisterCoalescer] Clear

[llvm-branch-commits] [llvm] PR for llvm/llvm-project#79718 (PR #81241)

2024-02-09 Thread via llvm-branch-commits
https://github.com/llvmbot milestoned https://github.com/llvm/llvm-project/pull/81241 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [mlir] [mlir][Transforms] Support `moveOpBefore`/`After` in dialect conversion (PR #81240)

2024-02-09 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-mlir-core @llvm/pr-subscribers-mlir Author: Matthias Springer (matthias-springer) Changes Add a new rewrite action for "operation movements". This action can roll back `moveOpBefore` and `moveOpAfter`. `RewriterBase::moveOpBefore` and

[llvm-branch-commits] [mlir] [mlir][Transforms] Support `moveOpBefore`/`After` in dialect conversion (PR #81240)

2024-02-09 Thread Matthias Springer via llvm-branch-commits
https://github.com/matthias-springer created https://github.com/llvm/llvm-project/pull/81240 Add a new rewrite action for "operation movements". This action can roll back `moveOpBefore` and `moveOpAfter`. `RewriterBase::moveOpBefore` and `RewriterBase::moveOpAfter` is no longer virtual. (The

[llvm-branch-commits] [mlir] [mlir][Transforms][NFC] Modularize block actions (PR #81237)

2024-02-09 Thread Matthias Springer via llvm-branch-commits
https://github.com/matthias-springer updated https://github.com/llvm/llvm-project/pull/81237 >From ae9dcbbcf4a23cd9f5a28195ceb3687957fa730f Mon Sep 17 00:00:00 2001 From: Matthias Springer Date: Fri, 9 Feb 2024 09:29:10 + Subject: [PATCH] [mlir][Transforms][NFC] Modularize block actions

[llvm-branch-commits] [mlir] [mlir][Transforms][NFC] Modularize block actions (PR #81237)

2024-02-09 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-mlir Author: Matthias Springer (matthias-springer) Changes Throughout the rewrite process, the dialect conversion maintains a list of "block actions" that can be rolled back upon failure. This commit encapsulates the existing block actions into

[llvm-branch-commits] [mlir] [mlir][Transforms][NFC] Modularize block actions (PR #81237)

2024-02-09 Thread Matthias Springer via llvm-branch-commits
https://github.com/matthias-springer created https://github.com/llvm/llvm-project/pull/81237 Throughout the rewrite process, the dialect conversion maintains a list of "block actions" that can be rolled back upon failure. This commit encapsulates the existing block actions into separate

[llvm-branch-commits] [flang] 748b17c - Revert "[flang] Align runtime info and lowering regarding passing ABIs (#81166)"

2024-02-09 Thread via llvm-branch-commits
Author: jeanPerier Date: 2024-02-09T09:37:12+01:00 New Revision: 748b17c66400aaf6fe85eaf8dde56de80322b73e URL: https://github.com/llvm/llvm-project/commit/748b17c66400aaf6fe85eaf8dde56de80322b73e DIFF: https://github.com/llvm/llvm-project/commit/748b17c66400aaf6fe85eaf8dde56de80322b73e.diff