janagor wrote:
Oh, I see, I changed it.
https://github.com/llvm/llvm-project/pull/133546
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/janagor updated
https://github.com/llvm/llvm-project/pull/133546
From 4581169d6fbe72357bb83b95fe36c8cc606efa1e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20G=C3=B3rski?=
Date: Fri, 28 Mar 2025 23:36:18 +0100
Subject: [PATCH 1/9] [clang][CodeGen] Added llvm ir pre-commit tes
https://github.com/janagor updated
https://github.com/llvm/llvm-project/pull/133546
From 4581169d6fbe72357bb83b95fe36c8cc606efa1e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20G=C3=B3rski?=
Date: Fri, 28 Mar 2025 23:36:18 +0100
Subject: [PATCH 1/8] [clang][CodeGen] Added llvm ir pre-commit tes
janagor wrote:
> I don't really understand what the new version of the patch is doing...
> instcombine can infer `nuw` on `trunc` if the operand has range metadata.
> There isn't any reason to duplicate that code.
The unoptimized version of IR is which is generated is the following:
```
%at
https://github.com/janagor updated
https://github.com/llvm/llvm-project/pull/133546
From 4581169d6fbe72357bb83b95fe36c8cc606efa1e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20G=C3=B3rski?=
Date: Fri, 28 Mar 2025 23:36:18 +0100
Subject: [PATCH 1/6] [clang][CodeGen] Added llvm ir pre-commit tes
https://github.com/janagor updated
https://github.com/llvm/llvm-project/pull/133546
From 4581169d6fbe72357bb83b95fe36c8cc606efa1e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20G=C3=B3rski?=
Date: Fri, 28 Mar 2025 23:36:18 +0100
Subject: [PATCH 1/5] [clang][CodeGen] Added llvm ir pre-commit tes
https://github.com/janagor edited
https://github.com/llvm/llvm-project/pull/133546
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/janagor edited
https://github.com/llvm/llvm-project/pull/133546
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/janagor created
https://github.com/llvm/llvm-project/pull/133546
Addresses #131476.
For `x86_64` it folds
```
movzbl t1(%rip), %eax
andb$1, %al
```
into
```
movzbl t1(%rip), %eax
```
when run: `clang -S atomic-ops-load.c -o atomic-ops-load.s -O1 --target=x86_64`.
But f
janagor wrote:
Ahh, I see, thanks for info. I will close this this PR and split into two
different PR's.
https://github.com/llvm/llvm-project/pull/133406
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/li
https://github.com/janagor closed
https://github.com/llvm/llvm-project/pull/133406
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/janagor created
https://github.com/llvm/llvm-project/pull/133406
Fixes #131476
In `EmitAtomicOp` for `AtomicLoad` case added ` !range` metadata when
encountered boolean type. This results in in generation `trunc nuw` instruction
instead of `trunc`.
In `RISCVTargetLowering:
12 matches
Mail list logo