[VectorLegalizer] Remove EVT::getSizeInBits code duplications. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 21 Nov 2016 18:24:44 +0000 (18:24 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 21 Nov 2016 18:24:44 +0000 (18:24 +0000)
commit5662074ba345b2668b4bbf8c7b8c57b3a8ec3023
tree18b52a2133b8dd1f144c7c2ea4e9424f3b9abb78
parentbe939b3ff6aba44ff8d760852a24e39a0f70d084
[VectorLegalizer] Remove EVT::getSizeInBits code duplications. NFCI.

We were calling SVT.getSizeInBits() several times in a row - just call it once and reuse the result.

llvm-svn: 287556
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp