[llvm] [SelectOpt] Add handling for Select-like operations. (PR #77284)

Sotiris Apostolakis via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 14:31:39 PST 2024


================
@@ -1038,7 +1191,7 @@ SelectOptimizeImpl::computeInstCost(const Instruction *I) {
 }
 
 ScaledNumber<uint64_t>
-SelectOptimizeImpl::getMispredictionCost(const SelectInst *SI,
+SelectOptimizeImpl::getMispredictionCost(SelectLike SI,
----------------
sapostolakis wrote:

ignore the reference point as discussed in the other comment but for the const part, could we keep it here? 

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


More information about the llvm-commits mailing list