summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-07-21 20:02:45 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-07-21 20:02:45 +0000
commitfa374ca2238e3853f5e33b2fd48e4c9f73dffc0d (patch)
treecd5e277a22867814118701b27398999adc12d86c /llvm
parent581cc87f575cbca0c7d31915fa822e7d18b3cdca (diff)
downloadbcm5719-llvm-fa374ca2238e3853f5e33b2fd48e4c9f73dffc0d.tar.gz
bcm5719-llvm-fa374ca2238e3853f5e33b2fd48e4c9f73dffc0d.zip
Eliminate a compilation warning.
llvm-svn: 53873
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/X86/X86FloatingPoint.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86FloatingPoint.cpp b/llvm/lib/Target/X86/X86FloatingPoint.cpp
index 6525136d0de..84ed6bae2c6 100644
--- a/llvm/lib/Target/X86/X86FloatingPoint.cpp
+++ b/llvm/lib/Target/X86/X86FloatingPoint.cpp
@@ -300,11 +300,13 @@ namespace {
};
}
+#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::handleOneArgFP(MachineBasicBlock::iterator &I) {
///
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));
OpenPOWER on IntegriCloud