[PATCH] D52010: RegAllocFast: Rewrite and improve

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 21 11:40:05 PDT 2019


arsenm added inline comments.


================
Comment at: lib/CodeGen/RegAllocFast.cpp:1019-1020
+          unsigned ClassSize1 = RegClassInfo.getOrder(&RC1).size();
+          bool SmallClass0 = ClassSize0 < NumRegDefOperands;
+          bool SmallClass1 = ClassSize1 < NumRegDefOperands;
+          if (SmallClass0 > SmallClass1)
----------------
I was able to fix the failure I see by refining this to the number of defs of a class that may alias the current register's class, though it seems a bit overkill


Repository:
  rL LLVM

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

https://reviews.llvm.org/D52010





More information about the llvm-commits mailing list