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:
parent
b61613dac7
commit
b3be1e45dd
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user