[MIPS GlobalISel] Consider type1 when legalizing shifts after r351882
authorPetar Avramovic <Petar.Avramovic@rt-rk.com>
Wed, 21 Aug 2019 09:31:29 +0000 (09:31 +0000)
committerPetar Avramovic <Petar.Avramovic@rt-rk.com>
Wed, 21 Aug 2019 09:31:29 +0000 (09:31 +0000)
commit61bf2675b986d7bd554958b58e7a2e72da5eac2f
tree52cb16c2e37f4cf11cce2c3a10853d51fc470bd8
parent5b4c5c2c54be3078ed6bb9bb24572389efe22ba3
[MIPS GlobalISel] Consider type1 when legalizing shifts after r351882

r351882 allows different type for shift amount then result and value
being shifted. Fix MIPS Legalizer rules to take r351882 into account.

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

llvm-svn: 369510
llvm/lib/Target/Mips/MipsLegalizerInfo.cpp
llvm/test/CodeGen/Mips/GlobalISel/legalizer/bitwise.mir