[PATCH] D143897: [CodeGenPrepare] Estimate liveness of loop invariants when checking for address folding profitability

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 19 03:51:48 PDT 2023


dmgreen added inline comments.


================
Comment at: llvm/lib/CodeGen/CodeGenPrepare.cpp:274
+    "cgp-max-loop-inv-users-to-scan", cl::init(20), cl::Hidden,
+    cl::desc("Max number of loo[ invariantd users to look at"));
 namespace {
----------------
-> loop invariant


================
Comment at: llvm/lib/CodeGen/CodeGenPrepare.cpp:5088
 
+  // If the value is a loop invariant and is used in the loop which contains the
+  // memory instruction, it's live.
----------------
"If the value is loop invariant"


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

https://reviews.llvm.org/D143897



More information about the llvm-commits mailing list