[PATCH] D22143: [SimplifyCFG] Rewrite SinkThenElseCodeToEnd
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 3 08:49:29 PDT 2016
majnemer added inline comments.
================
Comment at: lib/Transforms/Utils/SimplifyCFG.cpp:1421
@@ +1420,3 @@
+ for (unsigned O = 0, E = I0->getNumOperands(); O != E; ++O) {
+ if (!llvm::all_of(Insts, [&I0, O](const Instruction *I) {
+ return areValuesTriviallySame(I->getOperand(O), I->getIterator(),
----------------
extra llvm::
================
Comment at: lib/Transforms/Utils/SimplifyCFG.cpp:1423
@@ +1422,3 @@
+ return areValuesTriviallySame(I->getOperand(O), I->getIterator(),
+ I0->getOperand(O), I0->getIterator());
+ }))
----------------
There are intrinsics which take an return tokens.
https://reviews.llvm.org/D22143
More information about the llvm-commits
mailing list