[all-commits] [llvm/llvm-project] a5cd27: [IR] Improve member `ShuffleVectorInst::isReplicat...

Roman Lebedev via All-commits all-commits at lists.llvm.org
Fri Nov 5 14:09:55 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a5cd27880a258df7df32ec1553d9e4ca7e1868a0
      https://github.com/llvm/llvm-project/commit/a5cd27880a258df7df32ec1553d9e4ca7e1868a0
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2021-11-06 (Sat, 06 Nov 2021)

  Changed paths:
    M llvm/include/llvm/IR/Instructions.h
    M llvm/lib/IR/Instructions.cpp
    M llvm/unittests/IR/InstructionsTest.cpp

  Log Message:
  -----------
  [IR] Improve member `ShuffleVectorInst::isReplicationMask()`

When we have an actual shuffle, we can impose the additional restriction
that the mask replicates the elements of the first operand, so we know
the replication factor as a ratio of output and op0 vector sizes.




More information about the All-commits mailing list