[PATCH] D72420: [LoopRotate] Add support for rotating loops with switch exit

Alina Sbirlea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 20 12:28:51 PDT 2020


asbirlea added a comment.

Thank you, this looks like a great missed optimization.



================
Comment at: llvm/lib/Transforms/Utils/LoopRotationUtils.cpp:222
     return false;
 
   // If the loop header is not one of the loop exiting blocks then
----------------
I'm missing why not keep the check&exit if Term is a branch and it's unconditional.


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

https://reviews.llvm.org/D72420





More information about the llvm-commits mailing list