[llvm] 4ee28b4 - [VE] Set getExtendForAtomicOps to ISD::ANY_EXTEND
Kazushi Marukawa via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 19 03:58:51 PDT 2021
Author: Kazushi (Jam) Marukawa
Date: 2021-07-19T19:58:44+09:00
New Revision: 4ee28b4fecade32e679dd96c8bd98b71085a8b14
URL: https://github.com/llvm/llvm-project/commit/4ee28b4fecade32e679dd96c8bd98b71085a8b14
DIFF: https://github.com/llvm/llvm-project/commit/4ee28b4fecade32e679dd96c8bd98b71085a8b14.diff
LOG: [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
Added:
Modified:
llvm/lib/Target/VE/VEISelLowering.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/VE/VEISelLowering.h b/llvm/lib/Target/VE/VEISelLowering.h
index 883cd21a552c5..b4ce8906fd51c 100644
--- a/llvm/lib/Target/VE/VEISelLowering.h
+++ b/llvm/lib/Target/VE/VEISelLowering.h
@@ -98,6 +98,9 @@ class VETargetLowering : public TargetLowering {
AtomicOrdering Ord) const override;
TargetLoweringBase::AtomicExpansionKind
shouldExpandAtomicRMWInIR(AtomicRMWInst *AI) const override;
+ ISD::NodeType getExtendForAtomicOps() const override {
+ return ISD::ANY_EXTEND;
+ }
/// Custom Lower {
SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;
More information about the llvm-commits
mailing list