[PATCH] D21180: [IPRA] Interprocedural Register Allocation - Transformation Pass

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 10 09:06:08 PDT 2016


mehdi_amini added inline comments.

================
Comment at: lib/CodeGen/RegUsageInfoPropagate.cpp:118
@@ +117,3 @@
+      if (Operand.isGlobal())
+        UpdateRegMask(M->getFunction(Operand.getGlobal()->getName()));
+      else if (Operand.isSymbol())
----------------
No: Operand.getGlobal() already returns the Function *....
(you'll need a cast)


http://reviews.llvm.org/D21180





More information about the llvm-commits mailing list