[PATCH] D15232: [InstCombine] Aggressively fold compares that can be discovered to be constant

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 4 09:26:18 PST 2015


bkramer added a subscriber: bkramer.
bkramer added a comment.

In http://reviews.llvm.org/D15232#302528, @jmolloy wrote:

> Unfortunately isa<> can't be deduced as a UnaryPredicate either, which is a pity because I thought that would look really neat.


You can't use isa<Foo>, but you can use isa<Foo, const Value *>. It's not as pretty though.


http://reviews.llvm.org/D15232





More information about the llvm-commits mailing list