[llvm-branch-commits] [llvm] GlobalISel: Fix combine duplicating atomic loads (PR #111730)
Thorsten Schütt via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Oct 9 12:15:33 PDT 2024
tschuett wrote:
The duplicating is only due to atomicity of the load?
https://github.com/llvm/llvm-project/blob/4605ba0437728ecf8233ba6dbb52ffba30a22743/llvm/test/CodeGen/AArch64/GlobalISel/prelegalizercombiner-sextload-from-sextinreg.mir#L17
Then I vote for:
```
if (atomic)
EraseFromParent();
```
for documentation.
https://github.com/llvm/llvm-project/pull/111730
More information about the llvm-branch-commits
mailing list