[PATCH] D58645: [PowerPC] Set useful flags for vector imm setting instructions

Jinsong Ji via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 25 13:42:08 PST 2019


jsji created this revision.
jsji added reviewers: nemanjai, hfinkel, lei.
Herald added subscribers: kbarton, hiraditya.
Herald added a project: LLVM.

Vector imm setting instructions like

  V_SET0B/V_SET0H/V_SET0
  V_SETALLONESB/V_SETALLONESH/V_SETALLONES
  XXLXORz/XXLXORspz/XXLXORdpz

Should behave like LI8.
We should set corresponding flags to allow rematerialization and other opts in LICM, RA, Scheduling etc.


Repository:
  rL LLVM

https://reviews.llvm.org/D58645

Files:
  llvm/lib/Target/PowerPC/PPCInstrAltivec.td
  llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
  llvm/lib/Target/PowerPC/PPCInstrVSX.td
  llvm/test/CodeGen/PowerPC/optimize-andiso.ll
  llvm/test/CodeGen/PowerPC/pr36292.ll
  llvm/test/CodeGen/PowerPC/vsx-infl-copy1.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58645.188253.patch
Type: text/x-patch
Size: 5258 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190225/16f2481e/attachment-0001.bin>


More information about the llvm-commits mailing list