diff --git a/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h b/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h --- a/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h +++ b/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h @@ -681,6 +681,7 @@ case Intrinsic::coro_suspend: case Intrinsic::coro_subfn_addr: case Intrinsic::threadlocal_address: + case Intrinsic::experimental_widenable_condition: // These intrinsics don't actually represent code after lowering. return 0; } diff --git a/llvm/test/Transforms/LoopUnroll/guard-cost-for-unrolling.ll b/llvm/test/Transforms/LoopUnroll/guard-cost-for-unrolling.ll --- a/llvm/test/Transforms/LoopUnroll/guard-cost-for-unrolling.ll +++ b/llvm/test/Transforms/LoopUnroll/guard-cost-for-unrolling.ll @@ -30,8 +30,8 @@ define void @test_guard_as_branch(ptr %arr, i64 %n, i64 %bound) { ; CHECK-LABEL: Loop Unroll: F[test_guard_as_branch] Loop %loop -; CHECK-NEXT: Loop Size = 10 -; CHECK-NEXT: runtime unrolling with count: 1 +; CHECK-NEXT: Loop Size = 9 +; CHECK-NEXT: runtime unrolling with count: 2 entry: br label %loop