https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125637
Bug ID: 125637
Summary: Missed optimization when reorder C ternary with -O3
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: kaelfandrew at gmail dot com
Target Milestone: ---
Created attachment 64647
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64647&action=edit
C code
https://godbolt.org/z/orMEvGfoE
GCC trunk with -O3 does not optimize src () to tgt () like LLVM trunk.