diff options
| author | Dan Gohman <gohman@apple.com> | 2009-06-12 19:03:05 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-06-12 19:03:05 +0000 |
| commit | c0273dad1f2c8226d1c55cd1429794d6415e8adc (patch) | |
| tree | ec636d8af95957cde1dba2d9d1b43b2d2f245c05 /lib/Transforms | |
| parent | 7d8e08aec26e66c7a40d25dfe4566b5180bfecf0 (diff) | |
| download | external_llvm-c0273dad1f2c8226d1c55cd1429794d6415e8adc.zip external_llvm-c0273dad1f2c8226d1c55cd1429794d6415e8adc.tar.gz external_llvm-c0273dad1f2c8226d1c55cd1429794d6415e8adc.tar.bz2 | |
Give Instruction::isSameOperationAs a corresponding comment to note
the relationship with MergeFunctions.cpp's isEquivalentOperation,
and make a trivial code reordering so that the two functions are
easier to compare.
Fix the name of Instruction::isSameOperationAs in MergeFunction.cpp's
isEquivalentOperation's comment, and fix a nearby 80-column violation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73241 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
| -rw-r--r-- | lib/Transforms/IPO/MergeFunctions.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/MergeFunctions.cpp b/lib/Transforms/IPO/MergeFunctions.cpp index 2b7fb5d..1dd3279 100644 --- a/lib/Transforms/IPO/MergeFunctions.cpp +++ b/lib/Transforms/IPO/MergeFunctions.cpp @@ -180,8 +180,9 @@ static bool isEquivalentType(const Type *Ty1, const Type *Ty2) { /// isEquivalentOperation - determine whether the two operations are the same /// except that pointer-to-A and pointer-to-B are equivalent. This should be -/// kept in sync with Instruction::isSameOperandAs. -static bool isEquivalentOperation(const Instruction *I1, const Instruction *I2) { +/// kept in sync with Instruction::isSameOperationAs. +static bool +isEquivalentOperation(const Instruction *I1, const Instruction *I2) { if (I1->getOpcode() != I2->getOpcode() || I1->getNumOperands() != I2->getNumOperands() || !isEquivalentType(I1->getType(), I2->getType())) |
