diff options
| author | David Rubin <87927264+Rexicon226@users.noreply.github.com> | 2024-10-04 15:21:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-04 22:21:27 +0000 |
| commit | 043b1adb8dff184deaf9e145e6045b36b9bf733b (patch) | |
| tree | 30c1e0e35c1e9b289ca1590431a59d9d44565520 /src/arch/wasm/CodeGen.zig | |
| parent | 163d505e27bfbdb0aed30339fcc98c0f5f364e7a (diff) | |
| download | zig-043b1adb8dff184deaf9e145e6045b36b9bf733b.tar.gz zig-043b1adb8dff184deaf9e145e6045b36b9bf733b.zip | |
remove `@fence` (#21585)
closes #11650
Diffstat (limited to 'src/arch/wasm/CodeGen.zig')
| -rw-r--r-- | src/arch/wasm/CodeGen.zig | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/arch/wasm/CodeGen.zig b/src/arch/wasm/CodeGen.zig index 193bd27a38..287ec831a2 100644 --- a/src/arch/wasm/CodeGen.zig +++ b/src/arch/wasm/CodeGen.zig @@ -2040,7 +2040,6 @@ fn genInst(func: *CodeGen, inst: Air.Inst.Index) InnerError!void { .atomic_rmw => func.airAtomicRmw(inst), .cmpxchg_weak => func.airCmpxchg(inst), .cmpxchg_strong => func.airCmpxchg(inst), - .fence => func.airFence(inst), .add_optimized, .sub_optimized, @@ -7742,20 +7741,6 @@ fn airAtomicRmw(func: *CodeGen, inst: Air.Inst.Index) InnerError!void { } } -fn airFence(func: *CodeGen, inst: Air.Inst.Index) InnerError!void { - const pt = func.pt; - const zcu = pt.zcu; - // Only when the atomic feature is enabled, and we're not building - // for a single-threaded build, can we emit the `fence` instruction. - // In all other cases, we emit no instructions for a fence. - const single_threaded = zcu.navFileScope(func.owner_nav).mod.single_threaded; - if (func.useAtomicFeature() and !single_threaded) { - try func.addAtomicTag(.atomic_fence); - } - - return func.finishAir(inst, .none, &.{}); -} - fn airAtomicStore(func: *CodeGen, inst: Air.Inst.Index) InnerError!void { const pt = func.pt; const zcu = pt.zcu; |
