[all-commits] [llvm/llvm-project] fb7c23: [SimpleLoopUnswitch] Skip trivial select conds for...
Joshua Cao via All-commits
all-commits at lists.llvm.org
Mon May 15 20:43:00 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fb7c237ca0dbc6f85c532f73e60616d0e7db82df
https://github.com/llvm/llvm-project/commit/fb7c237ca0dbc6f85c532f73e60616d0e7db82df
Author: Joshua Cao <cao.joshua at yahoo.com>
Date: 2023-05-15 (Mon, 15 May 2023)
Changed paths:
M llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
M llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-select.ll
Log Message:
-----------
[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.
More information about the All-commits
mailing list