[all-commits] [llvm/llvm-project] 7bb14f: [X86] Remove unreachable code in X86TargetTransfor...

XinWang10 via All-commits all-commits at lists.llvm.org
Thu Mar 16 21:33:24 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7bb14f196b2fc332c0fec46cb2ab6ac641efa1e3
      https://github.com/llvm/llvm-project/commit/7bb14f196b2fc332c0fec46cb2ab6ac641efa1e3
  Author: Wang, Xin10 <xin10.wang at intel.com>
  Date:   2023-03-17 (Fri, 17 Mar 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp

  Log Message:
  -----------
  [X86] Remove unreachable code in X86TargetTransformInfo.cpp

In Function getVectorInstrCost, situation Opcode == Instruction::ExtractElement
and Opcode == Instruction::InsertElement are all handled in the first 2 if-statements,
So we have no chance for the code in line 4401.

Reviewed By: RKSimon

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




More information about the All-commits mailing list