[PATCH] D94180: [SimplifyCFG] Optimize CFG when null is passed to a function with nonnull argument.
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 7 03:32:10 PST 2021
xbolva00 added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/SimplifyCFG.cpp:6599
+ for (const llvm::Use &Arg : CB->args())
+ if (Arg == I) {
+ if (const auto *GEPI = dyn_cast<GetElementPtrInst>(I)) {
----------------
Or just continue if I is GEP?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94180/new/
https://reviews.llvm.org/D94180
More information about the llvm-commits
mailing list