Skip to content

Commit

Permalink
[SystemZ] Set getExtendForAtomicOps to ISD::ANY_EXTEND
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
uweigand committed May 29, 2021
1 parent 42910da commit c123c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/SystemZ/SystemZISelLowering.h
Expand Up @@ -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;
Expand Down

0 comments on commit c123c17

Please sign in to comment.