[PATCH] D75233: [LoopTerminology] LCSSA Form

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 29 23:57:40 PDT 2020


Meinersbur added inline comments.


================
Comment at: llvm/docs/LoopTerminology.rst:193
+In the inner loop, the X3 is defined inside the loop, but used
+outside of it. In Loop Closed SSA form, this would be represented like so:
+
----------------
"like so" is spoken English only


================
Comment at: llvm/docs/LoopTerminology.rst:298-300
+`getSCEVAtScope() <https://llvm.org/doxygen/classllvm_1_1ScalarEvolution.html#a21d6ee82eed29080d911dbb548a8bb68>`_. However, if all loops are in LCSSA form,
+each expression (i.e. Value) is used only inside one loop
+hence you can just use `getSCEV() <https://llvm.org/doxygen/classllvm_1_1ScalarEvolution.html#a30bd18ac905eacf3601bc6a553a9ff49>`_.
----------------
cf "Howver, ..."

I don't think this says what you want to say.

Suggestion: "In LCSSA form, loop-variant values and and its value after the last iteration of the loop are represented by two different llvm::Instructions. Hence the llvm::Instruction itself disambiguates the context of evaluation such that it is safe to just use getSCEV()."


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

https://reviews.llvm.org/D75233





More information about the llvm-commits mailing list