[PATCH] D34576: [ConstantHoisting] Avoid hoisting constants in GEPs that index into a struct type.
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 29 16:45:24 PDT 2017
efriedma added a comment.
For the quadratic overhead, maybe it's just not worth worrying about; GEPs usually only have a few operands.
For your insertvalue example, I don't see any problem with that transform; the important part is that we can't transform the indexes (see http://llvm.org/docs/LangRef.html#insertvalue-instruction)
https://reviews.llvm.org/D34576
More information about the llvm-commits
mailing list