[PATCH] D54827: [simplifycfg] 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
Mon Nov 26 00:38:48 PST 2018


yinyuefengyi updated this revision to Diff 175202.
yinyuefengyi marked an inline comment as not done.
yinyuefengyi added a comment.

upload full diff with -U9999 for other's review comments.

lebedev.ri suggested to use  InstCombiner::foldAndOfICmps() instead of duplicate logic, this requires function change from private to public, also a new instance of InstComber is needed in SimplifyCFGOpt,  pending for discussions.
Thanks.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D54827/new/

https://reviews.llvm.org/D54827

Files:
  llvm/lib/Transforms/Utils/SimplifyCFG.cpp
  llvm/test/Transforms/SimplifyCFG/branch-fold-three.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54827.175202.patch
Type: text/x-patch
Size: 11478 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181126/59f13741/attachment.bin>


More information about the llvm-commits mailing list