Merge "Simplify and rename IsLoopInvariant() test."