[PATCH] D70771: [PowerPC] Replace the PPCISD:: SExtVElems with ISD::SIGN_EXTEND_INREG to leverage the combine rules

Kai Luo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 17 19:33:01 PST 2020


lkail added a comment.

> We are combing the instructions into sext_inreg instead of Power specific node SExtVElems, and then, it is selected as hw instruction which is defined in the pattern td.

CMIIW, `SExtVElems` works on types that fit in a vector register, like `v16i8`. And according to codes `SExtVElems` generates, it intends to sext lower bits in-place, which suggests `SIGN_EXTEND_INREG`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D70771





More information about the llvm-commits mailing list