[llvm] [SelectOpt] Add handling for Select-like operations. (PR #77284)
Sotiris Apostolakis via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 16 15:02:48 PST 2024
================
@@ -945,7 +1103,7 @@ bool SelectOptimizeImpl::computeLoopCosts(
// Cost of the loop's critical path.
CostInfo &MaxCost = LoopCost[Iter];
for (BasicBlock *BB : L->getBlocks()) {
- for (const Instruction &I : *BB) {
+ for (Instruction &I : *BB) {
----------------
sapostolakis wrote:
is removing the const here necessary?
I assume that the instruction is not modified here when computing the costs.
https://github.com/llvm/llvm-project/pull/77284
More information about the llvm-commits
mailing list