[PATCH] D42833: [LICM] update BlockColors after splitting predecessors

David Majnemer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 2 14:41:31 PST 2018


majnemer added inline comments.


================
Comment at: lib/Transforms/Scalar/LICM.cpp:860-863
+  // FIXME: it's not impossible to split LandingPad blocks, but it require
+  // updating BlockColors for all offspring blocks. By skipping such corner
+  // case, we can make updating BlockColors after splitting predecessor fairly
+  // simple.
----------------
You don't need to worry about updating BlockColors if we have landingpads. If there is a landingpad, BlockColors should be entirely empty.


https://reviews.llvm.org/D42833





More information about the llvm-commits mailing list