[PATCH] D47874: [SCEVExp] Advance found insertion point until we find a non-dbg instruction.

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 14 11:39:44 PDT 2018


dblaikie added subscribers: fhahn, dblaikie.
dblaikie added a comment.

Probably overkill, but I'd imagine the way to do this would be a trait
class that implements the two different tests depending on the type of the
node. (I guess a generic "isDebugInstruction" function that uses that trait
could be a handy general purpose tool to have, maybe? (so you don't have to
think so hard about different way s of testing whether something is a debug
instruction in MC versus IR))


https://reviews.llvm.org/D47874





More information about the llvm-commits mailing list