[PATCH] D49735: [RegisterBankInfo] Ignore InstrMappings that create impossible to repair operands

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 24 20:08:52 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL337882: [RegisterBankInfo] Ignore InstrMappings that create impossible to repair… (authored by tstellar, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D49735

Files:
  llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp


Index: llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp
+++ llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp
@@ -475,7 +475,7 @@
 
     // This is an impossible to repair cost.
     if (RepairCost == std::numeric_limits<unsigned>::max())
-      continue;
+      return MappingCost::ImpossibleCost();
 
     // Bias used for splitting: 5%.
     const uint64_t PercentageForBias = 5;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49735.157190.patch
Type: text/x-patch
Size: 512 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180725/5268307a/attachment.bin>


More information about the llvm-commits mailing list