[llvm-commits] [PATCH] SmallVector specialization

Duncan Sands baldrick at free.fr
Thu Feb 16 00:47:34 PST 2012


Hi Pete,

> I looked into the optimizer. in SimplifyICmpInst we only check for Alloca against null, but this needs a check for GEP of Alloca against null.  That makes the branch resolve to false but the optimizer doesn't always rerun the passes to remove the branches. Anyway, I'll add this as a bug with a suitably reduced test.

currently InstructionSimplify does almost nothing for GEPs, and not just in this
case.  I'm pretty sure that there's already a PR for icmp of GEP + alloca but I
couldn't find it.

Ciao, Duncan.



More information about the llvm-commits mailing list