[llvm] 806a936 - [PowerPC] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 10 10:33:26 PST 2024
Author: Kazu Hirata
Date: 2024-12-10T10:33:20-08:00
New Revision: 806a936b36553f284c2c68e67fd60abc75b200e6
URL: https://github.com/llvm/llvm-project/commit/806a936b36553f284c2c68e67fd60abc75b200e6
DIFF: https://github.com/llvm/llvm-project/commit/806a936b36553f284c2c68e67fd60abc75b200e6.diff
LOG: [PowerPC] Fix a warning
This patch fixes:
llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp:293:23: error: unused
variable 'NewFMAInt' [-Werror,-Wunused-variable]
Added:
Modified:
llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp b/llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp
index f900996ef6397a..e620637288eb6c 100644
--- a/llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp
+++ b/llvm/lib/Target/PowerPC/PPCVSXFMAMutate.cpp
@@ -294,6 +294,7 @@ namespace {
LIS->createAndComputeVirtRegInterval(KilledProdReg);
LLVM_DEBUG(dbgs() << " extended: " << NewFMAInt << '\n');
+ (void)NewFMAInt;
// Extend the live interval of the addend source (it might end at the
// copy to be removed, or somewhere in between there and here). This
More information about the llvm-commits
mailing list