diff options
| author | Dan Gohman <gohman@apple.com> | 2009-08-25 22:24:20 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-08-25 22:24:20 +0000 |
| commit | ba4fe8b91352f65caaf2a30f234b5006afd1cf2b (patch) | |
| tree | 9c93cc03af8c8af97bc51acd71bd9bb41399a16a | |
| parent | fc00c4a2407c1b30a19fef9ec0a1ae00f7f7472d (diff) | |
| download | external_llvm-ba4fe8b91352f65caaf2a30f234b5006afd1cf2b.zip external_llvm-ba4fe8b91352f65caaf2a30f234b5006afd1cf2b.tar.gz external_llvm-ba4fe8b91352f65caaf2a30f234b5006afd1cf2b.tar.bz2 | |
This should use isIndenticalToWhenDefined.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80039 91177308-0d34-0410-b5e6-96231b3b80d8
| -rw-r--r-- | lib/VMCore/Instruction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Instruction.cpp b/lib/VMCore/Instruction.cpp index 332ecf9..815dd7e 100644 --- a/lib/VMCore/Instruction.cpp +++ b/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 { |
