[PATCH] [LoopReroll] Run LICM before Loop Rerolling.
james.molloy at arm.com
Mon Feb 16 09:38:21 PST 2015
Hmm yeah, good questions. I can do (1). I hadn't remembered that SE had a function for this - I was trying to avoid implementing LICM myself!
But I'm not sure if I should do (1) because of (2). In my testcase, which is fairly difficult to reduce, we end up with a stray invariant multiply which is not the cheapest thing in the world. Perhaps adding another LICM regardless of Rerolling is the right way to go after all?
More information about the llvm-commits