[PATCH] D96663: [InstCombine] Fold icmp (select c, const, arg), null if arg has nonnullattr
Miguel Ojeda via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 23 22:12:14 PST 2021
ojeda added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp:3246
+ } else if (RHSC->isNullValue()) {
+ // If null is being comparing, check if V is a nonnull argument.
+ Argument *A = dyn_cast<Argument>(V);
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96663/new/
https://reviews.llvm.org/D96663
More information about the llvm-commits
mailing list