davide added a subscriber: davide. davide added a comment. The new LoopInvariantCodeMotion struct/class needs to live in an header in the new PM. You also don't need to convert all the tests, just one or two of them should be enough. http://reviews.llvm.org/D21772