[all-commits] [llvm/llvm-project] 2ed7db: [InstSimplify] Remove redundant {insert, extract}_v...

Joe Ellis via All-commits all-commits at lists.llvm.org
Thu May 13 09:10:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ed7db0d206b6af2fffa4cb2704264b76ca61266
      https://github.com/llvm/llvm-project/commit/2ed7db0d206b6af2fffa4cb2704264b76ca61266
  Author: Joe Ellis <joe.ellis at arm.com>
  Date:   2021-05-13 (Thu, 13 May 2021)

  Changed paths:
    M clang/test/CodeGen/attr-arm-sve-vector-bits-call.c
    M clang/test/CodeGen/attr-arm-sve-vector-bits-cast.c
    M llvm/lib/Analysis/InstructionSimplify.cpp
    A llvm/test/Transforms/InstSimplify/extract-vector.ll
    A llvm/test/Transforms/InstSimplify/insert-vector.ll

  Log Message:
  -----------
  [InstSimplify] Remove redundant {insert,extract}_vector intrinsic chains

This commit removes some redundant {insert,extract}_vector intrinsic
chains by implementing the following patterns as instsimplifies:

   (insert_vector _, (extract_vector X, 0), 0) -> X
   (extract_vector (insert_vector _, X, 0), 0) -> X

Reviewed By: peterwaller-arm

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




More information about the All-commits mailing list