]> granicus.if.org Git - llvm/commit
[NFC][CodeGen] Modify the type element of TailCalls to simplify the dupRetToEnableTai...
authorKang Zhang <shkzhang@cn.ibm.com>
Fri, 2 Aug 2019 03:09:07 +0000 (03:09 +0000)
committerKang Zhang <shkzhang@cn.ibm.com>
Fri, 2 Aug 2019 03:09:07 +0000 (03:09 +0000)
commit8928b46f982c7c3418ff7444b3ab2c2ec2df4d27
tree09e8d924a2067f4c4556efdce911abb30a70960c
parent0927bf13d70ceb495dcf91c08667141344d503eb
[NFC][CodeGen] Modify the type element of TailCalls to simplify the dupRetToEnableTailCallOpts()

Summary:
The old code can be simplified to define the element type of TailCalls as `BasicBlock` not `CallInst`. Also I use the for-range loop instead the for loop.

Reviewed By: jsji

Differential Revision: https://reviews.llvm.org/D64905

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367644 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp