[PATCH] D66608: [InstCombine] icmp eq/ne (gep inbounds P, Idx..), null -> icmp eq/ne P, null
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 23 08:29:39 PDT 2019
xbolva00 added inline comments.
================
Comment at: lib/Transforms/InstCombine/InstCombineCompares.cpp:900
+ } else if (GEPLHS->isInBounds() && ICmpInst::isEquality(Cond) &&
+ GEPLHS->getType()->isPointerTy() && // TODO: extend to vector geps
+ isa<Constant>(RHS) && cast<Constant>(RHS)->isNullValue() &&
----------------
isa<ConstantPointerNull>(...)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66608/new/
https://reviews.llvm.org/D66608
More information about the llvm-commits
mailing list