1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

[VE] Set getExtendForAtomicOps to ISD::ANY_EXTEND

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

Reviewed By: simoll

Differential Revision: https://reviews.llvm.org/D106225
This commit is contained in:
Kazushi (Jam) Marukawa 2021-07-14 05:01:10 +09:00
parent b61613dac7
commit b3be1e45dd

View File

@ -98,6 +98,9 @@ public:
AtomicOrdering Ord) const override; AtomicOrdering Ord) const override;
TargetLoweringBase::AtomicExpansionKind TargetLoweringBase::AtomicExpansionKind
shouldExpandAtomicRMWInIR(AtomicRMWInst *AI) const override; shouldExpandAtomicRMWInIR(AtomicRMWInst *AI) const override;
ISD::NodeType getExtendForAtomicOps() const override {
return ISD::ANY_EXTEND;
}
/// Custom Lower { /// Custom Lower {
SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override; SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;