summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-25 22:24:20 +0000
committerDan Gohman <gohman@apple.com>2009-08-25 22:24:20 +0000
commit23d2c76f31f2135c85c0a3aaa402c975781ce41a (patch)
treeb324d50ba57a8152320f519ef7f8a25b8da5f45d
parentc8a27f2a5c673970ac1edf8e6101c27d4dafb9a7 (diff)
downloadbcm5719-llvm-23d2c76f31f2135c85c0a3aaa402c975781ce41a.tar.gz
bcm5719-llvm-23d2c76f31f2135c85c0a3aaa402c975781ce41a.zip
This should use isIndenticalToWhenDefined.
llvm-svn: 80039
-rw-r--r--llvm/lib/VMCore/Instruction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Instruction.cpp b/llvm/lib/VMCore/Instruction.cpp
index 332ecf9782d..815dd7e7bd9 100644
--- a/llvm/lib/VMCore/Instruction.cpp
+++ b/llvm/lib/VMCore/Instruction.cpp
@@ -168,11 +168,11 @@ const char *Instruction::getOpcodeName(unsigned OpCode) {
/// identical to the current one. This means that all operands match and any
/// extra information (e.g. load is volatile) agree.
bool Instruction::isIdenticalTo(const Instruction *I) const {
- return isIdenticalTo(I) &&
+ return isIdenticalToWhenDefined(I) &&
SubclassOptionalData == I->SubclassOptionalData;
}
-/// isIdenticalToWenDefined - This is like isIdenticalTo, except that it
+/// isIdenticalToWhenDefined - This is like isIdenticalTo, except that it
/// ignores the SubclassOptionalData flags, which specify conditions
/// under which the instruction's result is undefined.
bool Instruction::isIdenticalToWhenDefined(const Instruction *I) const {
OpenPOWER on IntegriCloud