Joshua Cao fb7c237ca0 [SimpleLoopUnswitch] Skip trivial select conds for selects
Fixes https://github.com/llvm/llvm-project/issues/62715

If a select's condition is a trivial select:
```
%s = select %cond, i1 true, i1 false
```
Unswitch on %cond, rather than %s. This fixes crashes where there is a
disparity in finding candidates and and the transformation logic.
2023-05-15 20:31:24 -07:00
..
2022-07-19 09:57:28 +02:00
2023-03-21 17:11:58 +07:00