[PATCH] D145908: [X86] Remove unreachable code in X86TargetTransformInfo.cpp
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 16 21:33:23 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7bb14f196b2f: [X86] Remove unreachable code in X86TargetTransformInfo.cpp (authored by XinWang10, committed by xin10.wang <wangxin8 at f90srv19.nh.intel.com>).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145908/new/
https://reviews.llvm.org/D145908
Files:
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
Index: llvm/lib/Target/X86/X86TargetTransformInfo.cpp
===================================================================
--- llvm/lib/Target/X86/X86TargetTransformInfo.cpp
+++ llvm/lib/Target/X86/X86TargetTransformInfo.cpp
@@ -4396,11 +4396,6 @@
return ShuffleCost + IntOrFpCost + RegisterFileMoveCost;
}
- // Add to the base cost if we know that the extracted element of a vector is
- // destined to be moved to and used in the integer register file.
- if (Opcode == Instruction::ExtractElement && ScalarType->isPointerTy())
- RegisterFileMoveCost += 1;
-
return BaseT::getVectorInstrCost(Opcode, Val, CostKind, Index, Op0, Op1) +
RegisterFileMoveCost;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145908.505984.patch
Type: text/x-patch
Size: 687 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230317/8f663a44/attachment.bin>
More information about the llvm-commits
mailing list