summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Instruction.h2
-rw-r--r--llvm/lib/Bytecode/Analyzer/Analyzer.cpp2
-rw-r--r--llvm/lib/Bytecode/Reader/Analyzer.cpp2
3 files changed, 2 insertions, 4 deletions
diff --git a/llvm/include/llvm/Instruction.h b/llvm/include/llvm/Instruction.h
index 1d863483e0c..86f2a056cb9 100644
--- a/llvm/include/llvm/Instruction.h
+++ b/llvm/include/llvm/Instruction.h
@@ -95,8 +95,6 @@ public:
return isTerminator(iType);
}
- static inline bool isPhiNode(unsigned OpCode) { return OpCode == PHI; }
-
inline bool isBinaryOp() const {
return iType >= BinaryOpsBegin && iType < BinaryOpsEnd;
}
diff --git a/llvm/lib/Bytecode/Analyzer/Analyzer.cpp b/llvm/lib/Bytecode/Analyzer/Analyzer.cpp
index 3500ed09ea0..d8e75957bbe 100644
--- a/llvm/lib/Bytecode/Analyzer/Analyzer.cpp
+++ b/llvm/lib/Bytecode/Analyzer/Analyzer.cpp
@@ -191,7 +191,7 @@ public:
bca.numOperands += Operands.size();
if ( currFunc ) {
currFunc->numInstructions++;
- if ( Instruction::isPhiNode(Opcode) ) currFunc->numPhis++;
+ if ( Opcode == Instruction::PHI ) currFunc->numPhis++;
}
return Instruction::isTerminator(Opcode);
}
diff --git a/llvm/lib/Bytecode/Reader/Analyzer.cpp b/llvm/lib/Bytecode/Reader/Analyzer.cpp
index 3500ed09ea0..d8e75957bbe 100644
--- a/llvm/lib/Bytecode/Reader/Analyzer.cpp
+++ b/llvm/lib/Bytecode/Reader/Analyzer.cpp
@@ -191,7 +191,7 @@ public:
bca.numOperands += Operands.size();
if ( currFunc ) {
currFunc->numInstructions++;
- if ( Instruction::isPhiNode(Opcode) ) currFunc->numPhis++;
+ if ( Opcode == Instruction::PHI ) currFunc->numPhis++;
}
return Instruction::isTerminator(Opcode);
}
OpenPOWER on IntegriCloud