[llvm] b6d63c9 - [GISel][KnownBits] Suppress unused warning on the dump method
Quentin Colombet via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 21 21:13:27 PST 2020
Author: Quentin Colombet
Date: 2020-02-21T21:07:04-08:00
New Revision: b6d63c92ec37a4416009c3bd279561421429c396
URL: https://github.com/llvm/llvm-project/commit/b6d63c92ec37a4416009c3bd279561421429c396
DIFF: https://github.com/llvm/llvm-project/commit/b6d63c92ec37a4416009c3bd279561421429c396.diff
LOG: [GISel][KnownBits] Suppress unused warning on the dump method
NFC
Added:
Modified:
llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp b/llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
index 695b661186d1..a2b251328c59 100644
--- a/llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
@@ -88,8 +88,8 @@ APInt GISelKnownBits::getKnownZeroes(Register R) {
APInt GISelKnownBits::getKnownOnes(Register R) { return getKnownBits(R).One; }
-static void dumpResult(const MachineInstr &MI, const KnownBits &Known,
- unsigned Depth) {
+LLVM_ATTRIBUTE_UNUSED static void
+dumpResult(const MachineInstr &MI, const KnownBits &Known, unsigned Depth) {
dbgs() << "[" << Depth << "] Compute known bits: " << MI << "[" << Depth
<< "] Computed for: " << MI << "[" << Depth << "] Known: 0x"
<< (Known.Zero | Known.One).toString(16, false) << "\n"
More information about the llvm-commits
mailing list