[llvm] [HEXAGON] Add basic block limit for RDF optimizations (PR #81071)

via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 9 07:25:35 PST 2024


================
@@ -856,6 +858,14 @@ bool HexagonOptAddrMode::runOnMachineFunction(MachineFunction &MF) {
   if (skipFunction(MF.getFunction()))
     return false;
 
+  // Perform RDF optimizations only if number of basic blocks in the
+  // function is less than the limit
+  if (MF.size() > RDFFuncBlockLimit) {
+    LLVM_DEBUG(dbgs() << "Skipping " << getPassName()
----------------
SidManning wrote:

Since this message is here, it might be useful/interesting to show what the number and limit are.

https://github.com/llvm/llvm-project/pull/81071


More information about the llvm-commits mailing list