[llvm] [AMDGPU] Add getCmpSelInstrCost override to re-enable SimplifyCFG speculation for vector types (PR #208043)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 31 09:39:25 PDT 2026
================
@@ -0,0 +1,185 @@
+; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 6
+; RUN: opt -passes="print<cost-model>" 2>&1 -disable-output -mtriple=amdgcn-unknown-amdhsa < %s | FileCheck -check-prefixes=ALL %s
+; RUN: opt -passes="print<cost-model>" -cost-kind=code-size 2>&1 -disable-output -mtriple=amdgcn-unknown-amdhsa < %s | FileCheck -check-prefixes=ALL-SIZE %s
+
+define void @select_i32(i1 %cond, i32 %a, i32 %b) {
----------------
arsenm wrote:
Isn't this cost specifically for compare and select? This just has the select parts?
https://github.com/llvm/llvm-project/pull/208043
More information about the llvm-commits
mailing list