[llvm] [CodeGen][TII] Simplify analyzeSelect (PR #175828)

Ryan Buchner via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 13 13:22:14 PST 2026


bababuck wrote:

Is the `Optimizable` argument needed still, or could we just combine it with the return value of `analyzeSelect()`, redefining the return value as `true if select cannot be understood or it is not optimizable`.
```
  if (TII->analyzeSelect(MI, Optimizable))
    return false;
  if (!Optimizable)
    return false;
```
would then just be:
```
  if (TII->analyzeSelect(MI))
    return false;
```

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


More information about the llvm-commits mailing list