[PATCH] [mips] [IAS] Slightly improve shift instruction generation in expandLoadImm.

Toma Tabacu toma.tabacu at imgtec.com
Fri Apr 10 08:25:45 PDT 2015


Hi dsanders,

Generate one DSLL32 of 0 instead of two consecutive DSLL of 16.
In order to do this I had to change createLShiftOri's template argument from a bool to an unsigned.

This also gave me the opportunity to rewrite the mips64-expansions.s test, as it was testing the same cases multiple times and skipping over other cases.
It was also somewhat unreadable, as the CHECK lines were grouped in a huge block of text at the beginning of the file.

http://reviews.llvm.org/D8974

Files:
  lib/Target/Mips/AsmParser/MipsAsmParser.cpp
  test/MC/Mips/mips64-expansions.s

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8974.23603.patch
Type: text/x-patch
Size: 26491 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150410/c71d5ebb/attachment.bin>


More information about the llvm-commits mailing list