If loop header is also loop exiting block then it may not be safe to hoist instructions.