[llvm] c123c17 - [SystemZ] Set getExtendForAtomicOps to ISD::ANY_EXTEND

Ulrich Weigand via llvm-commits llvm-commits at lists.llvm.org
Sat May 29 03:17:01 PDT 2021


Author: Ulrich Weigand
Date: 2021-05-29T12:15:18+02:00
New Revision: c123c178b26ea38a1035093edfa430256bfd1e64

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

LOG: [SystemZ] Set getExtendForAtomicOps to ISD::ANY_EXTEND

The implementation of subword atomics does not actually
guarantee the result is zero-extended, which now caused
build bot failures after https://reviews.llvm.org/D101342
was landed.

Added: 
    

Modified: 
    llvm/lib/Target/SystemZ/SystemZISelLowering.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/SystemZ/SystemZISelLowering.h b/llvm/lib/Target/SystemZ/SystemZISelLowering.h
index 557d066a149b7..e6850a5ec0a56 100644
--- a/llvm/lib/Target/SystemZ/SystemZISelLowering.h
+++ b/llvm/lib/Target/SystemZ/SystemZISelLowering.h
@@ -569,7 +569,7 @@ class SystemZTargetLowering : public TargetLowering {
                                            unsigned Depth) const override;
 
   ISD::NodeType getExtendForAtomicOps() const override {
-    return ISD::ZERO_EXTEND;
+    return ISD::ANY_EXTEND;
   }
   ISD::NodeType getExtendForAtomicCmpSwapArg() const override {
     return ISD::ZERO_EXTEND;


        


More information about the llvm-commits mailing list