diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-06 05:51:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-06 05:51:46 +0000 |
commit | 0603845a4964e0ea7a4ac9af904d706a984341bc (patch) | |
tree | d1cd93561e1bbcaa7037cc5a2e8abd788d8ed537 /llvm/lib/VMCore/Instruction.cpp | |
parent | e23c13983655baaf9074cc50bda6f2fc048abd73 (diff) | |
download | bcm5719-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.cpp | 2 |
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; } |