[all-commits] [llvm/llvm-project] 851447: [InstCombine] remove useless insertelement

ZCBing via All-commits all-commits at lists.llvm.org
Wed Jul 6 02:06:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 851447cb3254877866bd519ed4c1b98c3c7fb38e
      https://github.com/llvm/llvm-project/commit/851447cb3254877866bd519ed4c1b98c3c7fb38e
  Author: Chenbing Zheng <Chenbing.Zheng at streamcomputing.com>
  Date:   2022-07-06 (Wed, 06 Jul 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
    M llvm/test/Transforms/InstCombine/vscale_extractelement-inseltpoison.ll
    M llvm/test/Transforms/InstCombine/vscale_extractelement.ll

  Log Message:
  -----------
  [InstCombine] remove useless insertelement

extractelement (bitcast (insertelement (Vec, b)), a) ->
extractelement (bitcast (Vec), a)

Reviewed By: RKSimon

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




More information about the All-commits mailing list