[PATCH] D79849: [NFCI][CostModel] Unify getCFInstrCost

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 16 01:04:37 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG7158f285a867: [CostModel] Unify getCFInstrCost (authored by samparker).

Changed prior to commit:
  https://reviews.llvm.org/D79849?vs=263666&id=270976#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79849/new/

https://reviews.llvm.org/D79849

Files:
  llvm/lib/Analysis/TargetTransformInfo.cpp


Index: llvm/lib/Analysis/TargetTransformInfo.cpp
===================================================================
--- llvm/lib/Analysis/TargetTransformInfo.cpp
+++ llvm/lib/Analysis/TargetTransformInfo.cpp
@@ -1225,13 +1225,9 @@
 
   switch (I->getOpcode()) {
   case Instruction::GetElementPtr:
-    return getUserCost(I, CostKind);
-
   case Instruction::Ret:
   case Instruction::PHI:
-  case Instruction::Br: {
-    return getCFInstrCost(I->getOpcode(), CostKind);
-  }
+  case Instruction::Br:
   case Instruction::Add:
   case Instruction::FAdd:
   case Instruction::Sub:
@@ -1251,7 +1247,6 @@
   case Instruction::Or:
   case Instruction::Xor:
   case Instruction::FNeg:
-    return getUserCost(I, CostKind);
   case Instruction::Select:
   case Instruction::ICmp:
   case Instruction::FCmp:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79849.270976.patch
Type: text/x-patch
Size: 802 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200616/f47ee034/attachment.bin>


More information about the llvm-commits mailing list