[PATCH] [RewriteStatepointsForGC] Preprocess the IR to remove unreachable blocks and single entry phis

Philip Reames listmail at philipreames.com
Fri Mar 27 15:03:27 PDT 2015


Hi sanjoy, swaroop.sridhar,

Two related small changes:
- Various dominance based queries about liveness can get confused if we're talking about unreachable blocks.  To avoid reasoning about such cases, just remove them before rewriting statepoints.
- Remove single entry phis (likely left behind by LCSSA) to reduce the number of live values.

Both of these are motivated by http://reviews.llvm.org/D8674, but are not actually dependent on that.

http://reviews.llvm.org/D8675

Files:
  lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
  test/Transforms/RewriteStatepointsForGC/preprocess.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8675.22824.patch
Type: text/x-patch
Size: 4868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150327/bdd404d2/attachment.bin>


More information about the llvm-commits mailing list