[ARM GlobalISel] Minor refactoring. NFCI
authorDiana Picus <diana.picus@linaro.org>
Fri, 14 Dec 2018 12:37:24 +0000 (12:37 +0000)
committerDiana Picus <diana.picus@linaro.org>
Fri, 14 Dec 2018 12:37:24 +0000 (12:37 +0000)
commit813af0d2831d5ece986a06d8e407156f941fafae
treecb43b28b1b017976ae291eac5905450d0c33c7cd
parent14dc3b295953aa341f7b3b374c45064fbadb2790
[ARM GlobalISel] Minor refactoring. NFCI

Refactor the ARMInstructionSelector to cache some opcodes in the
constructor instead of checking all the time if we're in ARM or Thumb
mode.

llvm-svn: 349143
llvm/lib/Target/ARM/ARMInstructionSelector.cpp