[PATCH] D88420: [InstCombine] matchRotate - support non-uniform constant vector rotation amounts (PR46895)

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 28 09:40:06 PDT 2020


nikic added a comment.

> To handle the various undef cases this ended up being a lot bulkier than I hoped - I'd love to hear if anyone has any suggestions on how we could use ConstantExpr/PatternMatch to simplify this as I imagine we could use such functionality in other places as we improve non-uniform vector support.

Would something along the lines of `ConstantExpr::getAdd(LC, RC)` and then matching the result against a Width splat work?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D88420



More information about the llvm-commits mailing list