[llvm] [LoopUnroll] Consider simplified operands while retrieving TTI instruction cost (PR #70929)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 16 02:44:38 PST 2023


================
@@ -50,7 +50,7 @@ for.end:
 }
 
 ; CHECK-LABEL: @test_func_addrspacecast_cost_nonfree(
-; CHECK: br i1 %exitcond
+; CHECK-NOT: br i1 %exitcond
----------------
nikic wrote:

I think you should adjust the `-unroll-threshold=49` option in this test to preserve the old behavior. If I understood correctly, the extra cost saving applies to all functions in this file equally, so just adjusting the threshold should work.

https://github.com/llvm/llvm-project/pull/70929


More information about the llvm-commits mailing list