[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:27:23 PST 2024
================
@@ -1023,8 +1176,8 @@ SmallPtrSet<const Instruction *, 2>
SelectOptimizeImpl::getSIset(const SelectGroups &SIGroups) {
SmallPtrSet<const Instruction *, 2> SIset;
for (const SelectGroup &ASI : SIGroups)
- for (const SelectInst *SI : ASI)
- SIset.insert(SI);
+ for (SelectLike SI : ASI)
----------------
sapostolakis wrote:
fair point. given that this is just a pointer it is fine. In my mind, I thought of it as a Instruction and this is why it seemed necessary to use references.
https://github.com/llvm/llvm-project/pull/77284
More information about the llvm-commits
mailing list