[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)
commit3d941bc69675e1cc22289e5ede0f0450d245f2a1
treec2ea2772da2e5b816807b9c71515abb03e33a4a3
parentb4419f9d30a3a421ec4e723ffc9fb53d9b13b494
[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.

llvm-svn: 299811
llvm/include/llvm/IR/Type.h
llvm/lib/IR/Type.cpp