Index: llvm/lib/Transforms/Scalar/LICM.cpp =================================================================== --- llvm/lib/Transforms/Scalar/LICM.cpp +++ llvm/lib/Transforms/Scalar/LICM.cpp @@ -1026,7 +1026,8 @@ bool isHoistableAndSinkableInst(Instruction &I) { // Only these instructions are hoistable/sinkable. return (isa(I) || isa(I) || isa(I) || - isa(I) || isa(I) || isa(I) || + isa(I) || isa(I) || + isa(I) || isa(I) || isa(I) || isa(I) || isa(I) || isa(I) || isa(I) || isa(I) || isa(I) || Index: llvm/test/Transforms/LICM/hoisting.ll =================================================================== --- llvm/test/Transforms/LICM/hoisting.ll +++ llvm/test/Transforms/LICM/hoisting.ll @@ -127,9 +127,8 @@ } ; CHECK: define void @test6(float %f) -; CHECK: call ; CHECK: fneg -; CHECK: call +; CHECK: br label %for.body define void @test6(float %f) #2 { entry: br label %for.body