summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Instruction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-06 05:51:46 +0000
committerChris Lattner <sabre@nondot.org>2005-05-06 05:51:46 +0000
commit0603845a4964e0ea7a4ac9af904d706a984341bc (patch)
treed1cd93561e1bbcaa7037cc5a2e8abd788d8ed537 /llvm/lib/VMCore/Instruction.cpp
parente23c13983655baaf9074cc50bda6f2fc048abd73 (diff)
downloadbcm5719-llvm-0603845a4964e0ea7a4ac9af904d706a984341bc.tar.gz
bcm5719-llvm-0603845a4964e0ea7a4ac9af904d706a984341bc.zip
Add a 'tail' marker for call instructions, patch contributed by
Alexander Friedman. llvm-svn: 21722
Diffstat (limited to 'llvm/lib/VMCore/Instruction.cpp')
-rw-r--r--llvm/lib/VMCore/Instruction.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Instruction.cpp b/llvm/lib/VMCore/Instruction.cpp
index 2a4812831a1..e1dead99f23 100644
--- a/llvm/lib/VMCore/Instruction.cpp
+++ b/llvm/lib/VMCore/Instruction.cpp
@@ -141,6 +141,8 @@ bool Instruction::isIdenticalTo(Instruction *I) const {
return SI->isVolatile() == cast<StoreInst>(I)->isVolatile();
if (const VANextInst *VAN = dyn_cast<VANextInst>(this))
return VAN->getArgType() == cast<VANextInst>(I)->getArgType();
+ if (const CallInst *CI = dyn_cast<CallInst>(this))
+ return CI->isTailCall() == cast<CallInst>(I)->isTailCall();
return true;
}
OpenPOWER on IntegriCloud