[PATCH] [InstCombine] Don't fold a GEP into itself through a PHI node
nicholas at mxc.ca
Wed Mar 18 20:30:41 PDT 2015
Daniel Jasper wrote:
if (!Op2 || Op1->getNumOperands() != Op2->getNumOperands())
+ // As for Op1 above, don't try to fold a GEP into itself.
+ if (Op2 == &GEP)
+ return nullptr;
Consider folding that into the check above.
> EMAIL PREFERENCES
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
More information about the llvm-commits