[PATCH] D46324: [BranchFolding] Allow hoisting to block with a single conditional branch.
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 11 08:53:16 PDT 2018
aprantl added inline comments.
================
Comment at: lib/CodeGen/BranchFolding.cpp:1869
return Loc;
if (Loc == MBB->begin())
+ return Loc;
----------------
Can you add a comment explaining what this condition checks for and why return Loc is appropriate here?
Repository:
rL LLVM
https://reviews.llvm.org/D46324
More information about the llvm-commits
mailing list