[PATCH] D111806: [LICM] Check the number of divergent paths from loop header to target block

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 14 07:16:53 PDT 2021


lebedev.ri requested changes to this revision.
lebedev.ri added a comment.
This revision now requires changes to proceed.

As it's stated in the pass description, it is a canonicalization transform, performed without a costmodel,
and it's expected to be undone in backend.



================
Comment at: llvm/lib/Transforms/Scalar/LICM.cpp:15-20
 // Hoisting operations out of loops is a canonicalization transform.  It
 // enables and simplifies subsequent optimizations in the middle-end.
 // Rematerialization of hoisted instructions to reduce register pressure is the
 // responsibility of the back-end, which has more accurate information about
 // register pressure and also handles other optimizations than LICM that
 // increase live-ranges.
----------------




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

https://reviews.llvm.org/D111806



More information about the llvm-commits mailing list