[PATCH] D54827: [simplifycfg] Handle 3 sequential branches while the first two can infer the third one.
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 25 23:37:59 PST 2018
lebedev.ri added a comment.
Please always upload all patches with full context (`-U99999`)
================
Comment at: llvm/lib/Transforms/Utils/SimplifyCFG.cpp:5953-5955
+ Value *CombinedAndCmp = GetCombinedCompareInstruction(
+ Builder, PPBI->getCondition(), PBI->getCondition(), PCondIsTrue,
+ CondIsTrue);
----------------
And this too might already exist..
Have you seen [[ https://github.com/llvm-mirror/llvm/blob/5e3c9a56cb080c7a5131d6063d04d1d4a22044d0/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp | `InstCombiner::foldAndOfICmps()` ]] ?
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D54827/new/
https://reviews.llvm.org/D54827
More information about the llvm-commits
mailing list