[PATCH] D48374: [mips] Sign extend i32 return values on MIPS64

Stefan Maksimovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 20 09:00:39 PDT 2018


smaksimovic created this revision.
smaksimovic added a reviewer: sdardis.
Herald added subscribers: atanasyan, arichardson.

Note the logic operations in the and.ll, or.ll files and the like: the corresponding i32 logic op node gets combined with the i64 sign_extend node resulting in an i64 logic op node.
This prevents the sll operation from being generated later on.


https://reviews.llvm.org/D48374

Files:
  lib/Target/Mips/Mips64InstrInfo.td
  lib/Target/Mips/Mips64r6InstrInfo.td
  lib/Target/Mips/MipsISelLowering.cpp
  lib/Target/Mips/MipsISelLowering.h
  test/CodeGen/Mips/delay-slot-kill.ll
  test/CodeGen/Mips/llvm-ir/and.ll
  test/CodeGen/Mips/llvm-ir/not.ll
  test/CodeGen/Mips/llvm-ir/or.ll
  test/CodeGen/Mips/llvm-ir/select-int.ll
  test/CodeGen/Mips/llvm-ir/xor.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48374.152100.patch
Type: text/x-patch
Size: 11818 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180620/d0f7d32f/attachment.bin>


More information about the llvm-commits mailing list