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

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 19 09:29:23 PST 2020


nikic added a comment.

I'm not sure. It might make more sense to make SimplifyCFG be less aggressive about forming switches in this case. Pretty sure that converting `if (a == C || B == C2)` into a switch is pretty much a strict regression in optimization power, because a lot more passes support branches than switches.


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

https://reviews.llvm.org/D72420



More information about the llvm-commits mailing list