[ARM] Fixed an assumption of power-of-2 vector MVT
authorTim Renouf <tpr.llvm@botech.co.uk>
Sun, 17 Mar 2019 20:48:54 +0000 (20:48 +0000)
committerTim Renouf <tpr.llvm@botech.co.uk>
Sun, 17 Mar 2019 20:48:54 +0000 (20:48 +0000)
commitd1477e989cef27ce486fc765ba3b3e5f0644cc6b
tree2b006d5dc10be0bff65745dd2e1754d39dadcd85
parent10ba65cc48f9420fe046b6a607642734394e7e6e
[ARM] Fixed an assumption of power-of-2 vector MVT

I am about to introduce some non-power-of-2 width vector MVTs. This
commit fixes a power-of-2 assumption that my forthcoming change would
otherwise break, as shown by test/CodeGen/ARM/vcvt_combine.ll and
vdiv_combine.ll.

Differential Revision: https://reviews.llvm.org/D58927

Change-Id: I56a282e365d3874ab0621e5bdef98a612f702317
llvm-svn: 356341
llvm/lib/Target/ARM/ARMISelLowering.cpp