summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-09-07 12:18:01 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-09-11 08:57:29 -0400
commit070ae69c0c8cee2b778907805134d327964a0c0f (patch)
treeede52335eb360831d8a5f1032cbab32b62cdb852
parentc3776542920e539468060774cc3d19b94300b38a (diff)
downloadhaskell-070ae69c0c8cee2b778907805134d327964a0c0f.tar.gz
ncg: Kill incorrect unreachable code
As noted in #18183, these cases were previously incorrect and unused. Closes #18183.
-rw-r--r--compiler/GHC/CmmToAsm/X86/CodeGen.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/GHC/CmmToAsm/X86/CodeGen.hs b/compiler/GHC/CmmToAsm/X86/CodeGen.hs
index 1ab24c4a25..8357662a9c 100644
--- a/compiler/GHC/CmmToAsm/X86/CodeGen.hs
+++ b/compiler/GHC/CmmToAsm/X86/CodeGen.hs
@@ -3439,9 +3439,9 @@ outOfLineCmmOp bid mop res args
MO_Pdep w -> pdepLabel w
MO_Pext w -> pextLabel w
- MO_AtomicRMW _ _ -> fsLit "atomicrmw"
- MO_AtomicRead _ -> fsLit "atomicread"
- MO_AtomicWrite _ -> fsLit "atomicwrite"
+ MO_AtomicRMW _ _ -> unsupported
+ MO_AtomicRead _ -> unsupported
+ MO_AtomicWrite _ -> unsupported
MO_Cmpxchg w -> cmpxchgLabel w -- for W64 on 32-bit
-- TODO: implement
-- cmpxchg8b instr