[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:28:58 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:
I see. I am okay with either way. Just wanted to make sure it was not removed by mistake.
https://github.com/llvm/llvm-project/pull/77284
More information about the llvm-commits
mailing list