[all-commits] [llvm/llvm-project] 792f8e: [SVE] Take constant fold fast path for splatted vs...

Christopher Tetreault via All-commits all-commits at lists.llvm.org
Tue Nov 17 12:46:05 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 792f8e1114afa7f40227eee2820c6e425ee07c3b
      https://github.com/llvm/llvm-project/commit/792f8e1114afa7f40227eee2820c6e425ee07c3b
  Author: Christopher Tetreault <ctetreau at quicinc.com>
  Date:   2020-11-17 (Tue, 17 Nov 2020)

  Changed paths:
    M llvm/lib/IR/ConstantFold.cpp
    M llvm/test/Transforms/InstSimplify/ConstProp/vscale.ll
    A llvm/test/Transforms/InstSimplify/cmp-vec-fast-path.ll

  Log Message:
  -----------
  [SVE] Take constant fold fast path for splatted vscale vectors

This should be a perfectly reasonable operation for scalable vectors.
Currently, it only works for zeroinitializer values of
ScalableVectorType, but the fundamental operation is sound and it should
be possible to make it work for other splats

Reviewed By: david-arm

Differential Revision: https://reviews.llvm.org/D77442




More information about the All-commits mailing list