[PATCH] D54312: [CSP, Cloning] Update DuplicateInstructionsInSplitBetween to use DomTreeUpdater.
Jun Bum Lim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 9 09:45:34 PST 2018
junbuml added inline comments.
================
Comment at: lib/Transforms/Scalar/CallSiteSplitting.cpp:443
+
+static PredsWithCondsTy tryToSplitOnPHIPredicatedArgument(CallSite CS) {
if (!isPredicatedOnPHI(CS))
----------------
Now this function collects PredsWithCondsTy without performing splitting. Can you change this function name accordingly.
================
Comment at: lib/Transforms/Scalar/CallSiteSplitting.cpp:499-503
+ auto PredsWithConds = tryToSplitOnPredicatedArgument(CS, DTU);
+ if (PredsWithConds.empty())
+ PredsWithConds = tryToSplitOnPHIPredicatedArgument(CS);
+ if (PredsWithConds.empty())
+ return false;
----------------
What about doing this in a separate function ?
https://reviews.llvm.org/D54312
More information about the llvm-commits
mailing list