[PATCH] D32876: [InstSimplify] add folds for or-of-casted-icmps

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 4 12:27:28 PDT 2017


efriedma accepted this revision.
efriedma added a comment.
This revision is now accepted and ready to land.

LGTM.

The second testcase isn't getting folded because ConstantFoldCastOperand isn't getting called (you call ConstantExpr::getCast and never attempt to fold it).  IIRC there was a thread recently about a similar problem with InstSimplify of GEPs.


https://reviews.llvm.org/D32876





More information about the llvm-commits mailing list