[PATCH] D54827: Handle 3 sequential branches while the first two can infer the third one.
luo xionghu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 22 00:53:17 PST 2018
yinyuefengyi created this revision.
yinyuefengyi added reviewers: nemanjai, hfinkel, echristo, spatel, majnemer.
Herald added a subscriber: hiraditya.
e.g. if a>=b && a!=b, then we can infer a>b. this patch will combine the
a>=b and a!=b into a new compare instruction a>b first, then do the next
level implication calculation by reusing the existing isImpliedCondition
function.
Repository:
rL LLVM
https://reviews.llvm.org/D54827
Files:
llvm/include/llvm/IR/Instructions.h
llvm/lib/IR/Instructions.cpp
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/SimplifyCFG/branch-fold-three.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54827.175016.patch
Type: text/x-patch
Size: 9733 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181122/2809d3d7/attachment.bin>
More information about the llvm-commits
mailing list