[PATCH] D37076: [LICM] Allow sinking when foldable in loop
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 13 14:28:35 PDT 2017
efriedma added a comment.
> It's possible that getUserCost() returns FREE for a GEP, but the GEP cannot be folded into its user.
That seems like a bug. I mean, it currently does happen (because that's how getGEPCost is implemented), but in principle getUserCost should only return TCC_Free for operations which are actually free.
https://reviews.llvm.org/D37076
More information about the llvm-commits
mailing list