[PATCH] [MachineLICM] Sink instructions only if they are unlikely to be executed
djasper at google.com
Fri Mar 20 08:00:35 PDT 2015
Turns out the IsCopy check was actually important and papered over the fact that we cannot sink something that is used by a PHI (because we sink to before the first non-PHI instruction later). Sinking something that is used by a PHI probably also doesn't make much sense (or at least needs a separate investigation) as e.g. we might sink along the loop-entry edge.
Also simplified the implementation.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5950 bytes
Desc: not available
More information about the llvm-commits