]> granicus.if.org Git - llvm/commit
[IR] Inline Type::getScalarType() by using isVectorTy() and getVectorElementType...
authorCraig Topper <craig.topper@gmail.com>
Sat, 8 Apr 2017 05:47:09 +0000 (05:47 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sat, 8 Apr 2017 05:47:09 +0000 (05:47 +0000)
commit0a13ad663759daca3a16a556a8e7e61d9ea31710
tree3004f74f639a0c66a3f5c4c5bb588c7a2c0d2067
parent52f987ac7fbcad4d686bc7865ed5eacfb39860be
[IR] Inline Type::getScalarType() by using isVectorTy() and getVectorElementType() that were already available inline.

Seems to have very little compiled code size impact. But might give a tiny performance boost.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299811 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Type.h
lib/IR/Type.cpp