[llvm-dev] WinEH funclet coloring in computeLoopSafetyInfo

Kaylor, Andrew via llvm-dev llvm-dev at lists.llvm.org
Thu Jan 5 09:49:22 PST 2017

I've been looking at compilation time issues in the LICM pass, and it looks to me like colorEHFunclets() is probably being called a lot more often than it needs to be for functions that have Windows EH personality functions.  For one thing, the funclet coloring is happening when computeLoopSafetyInfo() is called from LoopIdiomRecognize and LoopUnswitch but those passes don't use the coloring information.  Beyond that, it's called for every loop within LICM even though in many case the information won't have changed since being computed for other loops in the same function.

I was thinking about pulling the funclet coloring out of computeLoopSafetyInfo() and moving it into an analysis pass that can be used by LICM.  Does this sound reasonable?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170105/0448f85f/attachment.html>

More information about the llvm-dev mailing list