[PATCH] D49974: [GuardWidening] Widen guards with conditions of frequently taken dominated branches

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 3 09:55:38 PDT 2018


reames accepted this revision.
reames added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: lib/Transforms/Scalar/GuardWidening.cpp:325
+               "Eliminated something other than guard or branch?");
+        ++CondBranchEliminated;
+      }
----------------
Add assert that the branch condition is a constant.


https://reviews.llvm.org/D49974





More information about the llvm-commits mailing list