[all-commits] [llvm/llvm-project] 09afe4: [InstCombine] For vector extract when extract vect...

CarolineConcatto via All-commits all-commits at lists.llvm.org
Fri Aug 19 04:14:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 09afe4155b304c8ab9e90c5699f1c0f10ccd0a7e
      https://github.com/llvm/llvm-project/commit/09afe4155b304c8ab9e90c5699f1c0f10ccd0a7e
  Author: Caroline Concatto <caroline.concatto at arm.com>
  Date:   2022-08-19 (Fri, 19 Aug 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    A llvm/test/Transforms/InstCombine/opts-tuples-extract-intrinsic.ll

  Log Message:
  -----------
  [InstCombine] For vector extract when extract vector and insert value type is the same

This patch has implements these optimizations:

 extract.vector(insert.vector(Vector, Value, Idx), Idx) --> Value

 extract.vector(insert.vector(Vector, Value, InsertIndex), ExtractIndex)
  --> extract.vector(Vector, ExtractIndex)

Reviewed By: sdesmalen

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




More information about the All-commits mailing list