[PATCH] D25477: [JumpThreading] Unfold selects that depend on the same condition

Pablo Barrio via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 11 08:33:34 PDT 2016


pbarrio created this revision.
pbarrio added reviewers: reames, bkramer, jmolloy.
pbarrio added a subscriber: llvm-commits.

These are good candidates for jump threading. This enables later opts
(such as InstCombine) to combine instructions from the selects with
instructions out of the selects. SimplifyCFG will fold the select
again if unfolding wasn't worth it.

Patch by James Molloy and Pablo Barrio.


https://reviews.llvm.org/D25477

Files:
  include/llvm/Transforms/Scalar/JumpThreading.h
  lib/Transforms/Scalar/JumpThreading.cpp
  test/Transforms/JumpThreading/unfold-selects-same-cond.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25477.74260.patch
Type: text/x-patch
Size: 6633 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161011/9c908125/attachment.bin>


More information about the llvm-commits mailing list