[PATCH] D31194: [InstSimplify] Try to Constant Fold the Instruction before simplification

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 1 11:15:21 PDT 2017


craig.topper added a comment.

Looks like ConstantFoldCompareInstOperands in lib/Analysis/ConstantFolding.cpp can't handle   icmp eq null, (inttoptr x)     it can only handle null on the RHS.


https://reviews.llvm.org/D31194





More information about the llvm-commits mailing list