[llvm-branch-commits] [flang] WIP: OpenMP changes (PR #74867)

2023-12-15 Thread Krzysztof Parzyszek via llvm-branch-commits

https://github.com/kparzysz closed 
https://github.com/llvm/llvm-project/pull/74867
___
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] [flang] [flang] Move OpenMP-related code from `FirConverter` to `OpenMPMixin` (PR #74866)

2023-12-15 Thread Krzysztof Parzyszek via llvm-branch-commits

https://github.com/kparzysz closed 
https://github.com/llvm/llvm-project/pull/74866
___
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] [builtins][arm64] Implement __init_cpu_features_resolver on Apple platforms (PR #75636)

2023-12-15 Thread Jon Roelofs via llvm-branch-commits

https://github.com/jroelofs created 
https://github.com/llvm/llvm-project/pull/75636

This is a re-land of https://github.com/llvm/llvm-project/pull/73685



___
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] [builtins][arm64] Implement __init_cpu_features_resolver on Apple platforms (PR #75636)

2023-12-15 Thread via llvm-branch-commits

github-actions[bot] wrote:




:warning: C/C++ code formatter, clang-format found issues in your code. 
:warning:



You can test this locally with the following command:


``bash
git-clang-format --diff 9abeecb80de5a9a04443d022a288f399f4169182 
7d00dcbd3111e22e155e753740aef9fc7449d652 -- 
compiler-rt/lib/builtins/cpu_model/aarch64/fmv/apple.inc 
compiler-rt/lib/builtins/cpu_model/aarch64.c
``





View the diff from clang-format here.


``diff
diff --git a/compiler-rt/lib/builtins/cpu_model/aarch64.c 
b/compiler-rt/lib/builtins/cpu_model/aarch64.c
index b4291ff401..761ac2e109 100644
--- a/compiler-rt/lib/builtins/cpu_model/aarch64.c
+++ b/compiler-rt/lib/builtins/cpu_model/aarch64.c
@@ -124,7 +124,7 @@ struct {
 } __aarch64_cpu_features __attribute__((visibility("hidden"), nocommon));
 
 #if defined(__APPLE__)
-#  include "aarch64/fmv/apple.inc"
+#include "aarch64/fmv/apple.inc"
 #elif defined(__FreeBSD__)
 #  include "aarch64/fmv/mrs.inc"
 #  include "aarch64/fmv/freebsd.inc"

``




https://github.com/llvm/llvm-project/pull/75636
___
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] 6e99603 - Revert "[StackColoring] Delete dead stack slots (#75351)"

2023-12-15 Thread via llvm-branch-commits

Author: Paul Kirth
Date: 2023-12-15T10:38:10-08:00
New Revision: 6e996033dd3f68330f7ccc5eb2c368ebd8158959

URL: 
https://github.com/llvm/llvm-project/commit/6e996033dd3f68330f7ccc5eb2c368ebd8158959
DIFF: 
https://github.com/llvm/llvm-project/commit/6e996033dd3f68330f7ccc5eb2c368ebd8158959.diff

LOG: Revert "[StackColoring] Delete dead stack slots (#75351)"

This reverts commit 08b306dc8e7c0b2498f4f194a3c51686d56dbd20.

Added: 


Modified: 
llvm/lib/CodeGen/StackColoring.cpp
llvm/test/CodeGen/PowerPC/aix32-cc-abi-vaarg.ll
llvm/test/CodeGen/PowerPC/aix64-cc-abi-vaarg.ll
llvm/test/CodeGen/X86/StackColoring-tbaa.mir
llvm/test/DebugInfo/COFF/lexicalblock.ll

Removed: 
llvm/test/CodeGen/RISCV/dead-stack-slot.ll



diff  --git a/llvm/lib/CodeGen/StackColoring.cpp 
b/llvm/lib/CodeGen/StackColoring.cpp
index fa01aa17b3a867..37f7aa9290054e 100644
--- a/llvm/lib/CodeGen/StackColoring.cpp
+++ b/llvm/lib/CodeGen/StackColoring.cpp
@@ -900,15 +900,6 @@ void StackColoring::remapInstructions(DenseMap 
&SlotRemap) {
   unsigned FixedMemOp = 0;
   unsigned FixedDbg = 0;
 
-  // Remove debug information for deleted slots.
-  erase_if(MF->getVariableDbgInfo(), [&](auto &VI) {
-if (!VI.inStackSlot())
-  return false;
-int Slot = VI.getStackSlot();
-return Slot >= 0 && Intervals[Slot]->empty() &&
-   InterestingSlots.test(Slot) && !ConservativeSlots.test(Slot);
-  });
-
   // Remap debug information that refers to stack slots.
   for (auto &VI : MF->getVariableDbgInfo()) {
 if (!VI.Var || !VI.inStackSlot())
@@ -1259,15 +1250,8 @@ bool StackColoring::runOnMachineFunction(MachineFunction 
&Func) {
 
   // Do not bother looking at empty intervals.
   for (unsigned I = 0; I < NumSlots; ++I) {
-int Slot = SortedSlots[I];
-if (Intervals[Slot]->empty()) {
-  if (InterestingSlots.test(Slot) && !ConservativeSlots.test(Slot)) {
-RemovedSlots += 1;
-ReducedSize += MFI->getObjectSize(Slot);
-MFI->RemoveStackObject(Slot);
-  }
+if (Intervals[SortedSlots[I]]->empty())
   SortedSlots[I] = -1;
-}
   }
 
   // This is a simple greedy algorithm for merging allocas. First, sort the
@@ -1355,7 +1339,7 @@ bool StackColoring::runOnMachineFunction(MachineFunction 
&Func) {
 
   // Scan the entire function and update all machine operands that use frame
   // indices to use the remapped frame index.
-  if (RemovedSlots > 0) {
+  if (!SlotRemap.empty()) {
 expungeSlotMap(SlotRemap, NumSlots);
 remapInstructions(SlotRemap);
   }

diff  --git a/llvm/test/CodeGen/PowerPC/aix32-cc-abi-vaarg.ll 
b/llvm/test/CodeGen/PowerPC/aix32-cc-abi-vaarg.ll
index 1b0a803734ae9f..bf66a1ed042d22 100644
--- a/llvm/test/CodeGen/PowerPC/aix32-cc-abi-vaarg.ll
+++ b/llvm/test/CodeGen/PowerPC/aix32-cc-abi-vaarg.ll
@@ -347,6 +347,7 @@ entry:
 
 ; 32BIT-LABEL:   stack:
 ; 32BIT-DAG: - { id: 0, name: arg1, type: default, offset: 0, size: 4, 
alignment: 4,
+; 32BIT-DAG: - { id: 1, name: arg2, type: default, offset: 0, size: 4, 
alignment: 4,
 ; 32BIT-DAG: - { id: 2, name: '', type: default, offset: 0, size: 8, 
alignment: 8,
 ; 32BIT-DAG: - { id: 3, name: '', type: default, offset: 0, size: 8, 
alignment: 8,
 

diff  --git a/llvm/test/CodeGen/PowerPC/aix64-cc-abi-vaarg.ll 
b/llvm/test/CodeGen/PowerPC/aix64-cc-abi-vaarg.ll
index a8684fdfe1c568..ccf89aac2d5408 100644
--- a/llvm/test/CodeGen/PowerPC/aix64-cc-abi-vaarg.ll
+++ b/llvm/test/CodeGen/PowerPC/aix64-cc-abi-vaarg.ll
@@ -138,7 +138,9 @@
 ; 64BIT-LABEL:   fixedStack:
 ; 64BIT-DAG: - { id: 0, type: default, offset: 112, size: 8, alignment: 
16, stack-id: default,
 
-; 64BIT-LABEL:   stack: []
+; 64BIT-LABEL:   stack:
+; 64BIT-DAG: - { id: 0, name: arg1, type: default, offset: 0, size: 8, 
alignment: 8,
+; 64BIT-DAG: - { id: 1, name: arg2, type: default, offset: 0, size: 8, 
alignment: 8,
 
 ; 64BIT-LABEL:   body: |
 ; 64BIT-DAG: liveins: $x3, $x4, $x5, $x6, $x7, $x8, $x9, $x10
@@ -303,7 +305,9 @@
 ; 64BIT-LABEL:   fixedStack:
 ; 64BIT-DAG:   - { id: 0, type: default, offset: 152, size: 8
 
-; 64BIT-LABEL:   stack:   []
+; 64BIT-LABEL:   stack:
+; 64BIT-DAG:   - { id: 0, name: arg1, type: default, offset: 0, size: 8
+; 64BIT-DAG:   - { id: 1, name: arg2, type: default, offset: 0, size: 8
 
 ; 64BIT-LABEL: body: |
 ; 64BIT-DAG:   liveins: $f1, $f2, $f3, $f4, $f5, $f6, $f7, $f8, $f9, $f10, 
$f11, $f12, $f13

diff  --git a/llvm/test/CodeGen/RISCV/dead-stack-slot.ll 
b/llvm/test/CodeGen/RISCV/dead-stack-slot.ll
deleted file mode 100644
index 49b0d2ab58c4f6..00
--- a/llvm/test/CodeGen/RISCV/dead-stack-slot.ll
+++ /dev/null
@@ -1,25 +0,0 @@
-; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
-; RUN: llc -mtriple=riscv32 -verify-machineinstrs < %s \
-; RUN:   | FileCheck %s
-; RUN: llc -mtriple=riscv64 -verify-machineinstrs <

[llvm-branch-commits] [compiler-rt] [builtins][arm64] Implement __init_cpu_features_resolver on Apple platforms (PR #75636)

2023-12-15 Thread Jon Roelofs via llvm-branch-commits

https://github.com/jroelofs updated 
https://github.com/llvm/llvm-project/pull/75636


___
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] [builtins][arm64] Implement __init_cpu_features_resolver on Apple platforms (PR #75636)

2023-12-15 Thread Jon Roelofs via llvm-branch-commits

https://github.com/jroelofs updated 
https://github.com/llvm/llvm-project/pull/75636


___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits