OSDN Git Service

[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)
commitda591137488328c255c66fc7da195d3f2775569f
treebed0d21e44a5230b65c35d02eb00886f9dc3c5c2
parentb68036c70c2ca3bc32e6d681bb6d9fbd2a78e7aa
[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.

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