Landing: f286b746394f

Project / Subsystem

gcc / fold-const.cc

Date

2026-01-17

Author

Daniel Barboza

Commit

f286b746394f2a81b10dc910f9526c30dad6faea

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
fold-const.cc
patch_id
commit_hash
f286b746394f2a81b10dc910f9526c30dad6faea
source_type
github
headline
fold-const.cc: Remove strict_overflow_p from maybe_canonicalize_comparison
tldr
The compiler removes the `strict_overflow_p` flag and `fold_overflow_warning` calls from `maybe_canonicalize_comparison`.
author
Daniel Barboza
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • optimization
  • constant folding
  • refactoring
  • warnings
discussion_id_link
bugzilla_pr
date
2026-01-17T00:00:00.000Z

The compiler removes the strict_overflow_p flag from the maybe_canonicalize_comparison functions, along with all related fold_overflow_warning calls. This simplifies the code and potentially changes when overflow warnings are issued.