[PATCH] D66805: [MIPS] For vectors, select `add %x, C` as `sub %x, -C` if it results in inline immediate

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 11:54:50 PDT 2019


lebedev.ri added inline comments.


================
Comment at: llvm/test/CodeGen/Mips/msa/arithmetic.ll:220-241
 define void @sub_v2i64_i(<2 x i64>* %c, <2 x i64>* %a) nounwind {
 ; MIPS-LABEL: sub_v2i64_i:
 ; MIPS:       # %bb.0:
 ; MIPS-NEXT:    ldi.b $w0, -1
 ; MIPS-NEXT:    shf.w $w0, $w0, 177
 ; MIPS-NEXT:    ld.d $w1, 0($5)
 ; MIPS-NEXT:    addv.d $w0, $w1, $w0
----------------
Hm, this one didn't get recovered by the patch.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66805/new/

https://reviews.llvm.org/D66805





More information about the llvm-commits mailing list