[llvm-commits] [llvm] r80038 - in /llvm/trunk: include/llvm/InstrTypes.h include/llvm/Instruction.h include/llvm/Instructions.h include/llvm/Value.h lib/Transforms/IPO/MergeFunctions.cpp lib/Transforms/Scalar/InstructionCombining.cpp lib/Transfor
Devang Patel
devang.patel at gmail.com
Tue Aug 25 15:20:27 PDT 2009
On Tue, Aug 25, 2009 at 3:11 PM, Dan Gohman<gohman at apple.com> wrote:
==============================================================================
> --- llvm/trunk/lib/VMCore/Instruction.cpp (original)
> +++ llvm/trunk/lib/VMCore/Instruction.cpp Tue Aug 25 17:11:20 2009
> @@ -168,6 +168,14 @@
> /// 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) &&
Did you mean isIdenticalToWhenDefined(I) here ?
-
Devang
> + SubclassOptionalData == I->SubclassOptionalData;
> +}
> +
> +/// isIdenticalToWenDefined - 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 {
> if (getOpcode() != I->getOpcode() ||
> getNumOperands() != I->getNumOperands() ||
> getType() != I->getType())
>
> Modified: llvm/trunk/lib/VMCore/Instructions.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Instructions.cpp?rev=80038&r1=80037&r2=80038&view=diff
>
More information about the llvm-commits
mailing list