[llvm] 5c6338d - [RISCV] Fix "set but not used" warnings
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 7 09:19:49 PDT 2021
Author: Kazu Hirata
Date: 2021-09-07T09:19:31-07:00
New Revision: 5c6338de16ad67f3fe1a4ceb753718db8b712034
URL: https://github.com/llvm/llvm-project/commit/5c6338de16ad67f3fe1a4ceb753718db8b712034
DIFF: https://github.com/llvm/llvm-project/commit/5c6338de16ad67f3fe1a4ceb753718db8b712034.diff
LOG: [RISCV] Fix "set but not used" warnings
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index 843849176496..7299a38006a5 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -4787,6 +4787,7 @@ SDValue RISCVTargetLowering::lowerMaskedGather(SDValue Op,
// Targets have to explicitly opt-in for extending vector loads.
assert(LoadExtType == ISD::NON_EXTLOAD &&
"Unexpected extending MGATHER/VP_GATHER");
+ (void)LoadExtType;
// If the mask is known to be all ones, optimize to an unmasked intrinsic;
// the selection of the masked intrinsics doesn't do this for us.
@@ -4885,6 +4886,7 @@ SDValue RISCVTargetLowering::lowerMaskedScatter(SDValue Op,
// Targets have to explicitly opt-in for extending vector loads and
// truncating vector stores.
assert(!IsTruncatingStore && "Unexpected truncating MSCATTER/VP_SCATTER");
+ (void)IsTruncatingStore;
// If the mask is known to be all ones, optimize to an unmasked intrinsic;
// the selection of the masked intrinsics doesn't do this for us.
More information about the llvm-commits
mailing list