[PATCH] D26391: [JumpThreading] Unfold selects that depend on the same condition
Pablo Barrio via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 8 04:46:24 PST 2016
pbarrio created this revision.
pbarrio added reviewers: sebpop, rengolin.
pbarrio added subscribers: llvm-commits, jmolloy.
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/D26391
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: D26391.77171.patch
Type: text/x-patch
Size: 7478 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161108/a7a75848/attachment.bin>
More information about the llvm-commits
mailing list