[PATCH] D54021: [LoopSimplifyCFG] Teach LoopSimplifyCFG to constant-fold branches and switches
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 4 13:02:56 PST 2018
dmgreen added inline comments.
================
Comment at: lib/Transforms/Scalar/LoopSimplifyCFG.cpp:64
+ auto *CI = dyn_cast<ConstantInt>(SI->getCondition());
+ if (!SI)
+ return nullptr;
----------------
Should be CI?
https://reviews.llvm.org/D54021
More information about the llvm-commits
mailing list