mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
AttrListPtr has an overloaded operator== which does this for us, we should use
it. No functionality change! llvm-svn: 124286
This commit is contained in:
parent
e4eac7ff9a
commit
8c38fe01dd
@ -393,12 +393,10 @@ bool FunctionComparator::isEquivalentOperation(const Instruction *I1,
|
||||
if (const CallInst *CI = dyn_cast<CallInst>(I1))
|
||||
return CI->isTailCall() == cast<CallInst>(I2)->isTailCall() &&
|
||||
CI->getCallingConv() == cast<CallInst>(I2)->getCallingConv() &&
|
||||
CI->getAttributes().getRawPointer() ==
|
||||
cast<CallInst>(I2)->getAttributes().getRawPointer();
|
||||
CI->getAttributes() == cast<CallInst>(I2)->getAttributes();
|
||||
if (const InvokeInst *CI = dyn_cast<InvokeInst>(I1))
|
||||
return CI->getCallingConv() == cast<InvokeInst>(I2)->getCallingConv() &&
|
||||
CI->getAttributes().getRawPointer() ==
|
||||
cast<InvokeInst>(I2)->getAttributes().getRawPointer();
|
||||
CI->getAttributes() == cast<InvokeInst>(I2)->getAttributes();
|
||||
if (const InsertValueInst *IVI = dyn_cast<InsertValueInst>(I1)) {
|
||||
if (IVI->getNumIndices() != cast<InsertValueInst>(I2)->getNumIndices())
|
||||
return false;
|
||||
|
@ -200,12 +200,10 @@ bool Instruction::isIdenticalToWhenDefined(const Instruction *I) const {
|
||||
if (const CallInst *CI = dyn_cast<CallInst>(this))
|
||||
return CI->isTailCall() == cast<CallInst>(I)->isTailCall() &&
|
||||
CI->getCallingConv() == cast<CallInst>(I)->getCallingConv() &&
|
||||
CI->getAttributes().getRawPointer() ==
|
||||
cast<CallInst>(I)->getAttributes().getRawPointer();
|
||||
CI->getAttributes() == cast<CallInst>(I)->getAttributes();
|
||||
if (const InvokeInst *CI = dyn_cast<InvokeInst>(this))
|
||||
return CI->getCallingConv() == cast<InvokeInst>(I)->getCallingConv() &&
|
||||
CI->getAttributes().getRawPointer() ==
|
||||
cast<InvokeInst>(I)->getAttributes().getRawPointer();
|
||||
CI->getAttributes() == cast<InvokeInst>(I)->getAttributes();
|
||||
if (const InsertValueInst *IVI = dyn_cast<InsertValueInst>(this)) {
|
||||
if (IVI->getNumIndices() != cast<InsertValueInst>(I)->getNumIndices())
|
||||
return false;
|
||||
@ -253,12 +251,11 @@ bool Instruction::isSameOperationAs(const Instruction *I) const {
|
||||
if (const CallInst *CI = dyn_cast<CallInst>(this))
|
||||
return CI->isTailCall() == cast<CallInst>(I)->isTailCall() &&
|
||||
CI->getCallingConv() == cast<CallInst>(I)->getCallingConv() &&
|
||||
CI->getAttributes().getRawPointer() ==
|
||||
cast<CallInst>(I)->getAttributes().getRawPointer();
|
||||
CI->getAttributes() == cast<CallInst>(I)->getAttributes();
|
||||
if (const InvokeInst *CI = dyn_cast<InvokeInst>(this))
|
||||
return CI->getCallingConv() == cast<InvokeInst>(I)->getCallingConv() &&
|
||||
CI->getAttributes().getRawPointer() ==
|
||||
cast<InvokeInst>(I)->getAttributes().getRawPointer();
|
||||
CI->getAttributes() ==
|
||||
cast<InvokeInst>(I)->getAttributes();
|
||||
if (const InsertValueInst *IVI = dyn_cast<InsertValueInst>(this)) {
|
||||
if (IVI->getNumIndices() != cast<InsertValueInst>(I)->getNumIndices())
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user