[llvm-commits] [llvm] r53873 - /llvm/trunk/lib/Target/X86/X86FloatingPoint.cpp
Evan Cheng
evan.cheng at apple.com
Mon Jul 21 13:02:45 PDT 2008
Author: evancheng
Date: Mon Jul 21 15:02:45 2008
New Revision: 53873
URL: http://llvm.org/viewvc/llvm-project?rev=53873&view=rev
Log:
Eliminate a compilation warning.
Modified:
llvm/trunk/lib/Target/X86/X86FloatingPoint.cpp
Modified: llvm/trunk/lib/Target/X86/X86FloatingPoint.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FloatingPoint.cpp?rev=53873&r1=53872&r2=53873&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FloatingPoint.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FloatingPoint.cpp Mon Jul 21 15:02:45 2008
@@ -300,11 +300,13 @@
};
}
+#ifndef NDEBUG
static bool TableIsSorted(const TableEntry *Table, unsigned NumEntries) {
for (unsigned i = 0; i != NumEntries-1; ++i)
if (!(Table[i] < Table[i+1])) return false;
return true;
}
+#endif
static int Lookup(const TableEntry *Table, unsigned N, unsigned Opcode) {
const TableEntry *I = std::lower_bound(Table, Table+N, Opcode);
@@ -662,8 +664,10 @@
///
void FPS::handleOneArgFPRW(MachineBasicBlock::iterator &I) {
MachineInstr *MI = I;
+#ifndef NDEBUG
unsigned NumOps = MI->getDesc().getNumOperands();
assert(NumOps >= 2 && "FPRW instructions must have 2 ops!!");
+#endif
// Is this the last use of the source register?
unsigned Reg = getFPReg(MI->getOperand(1));
More information about the llvm-commits
mailing list