]> gcc.gnu.org Git - gcc.git/commit
middle-end/103193 - avoid canonicalizing <= and >= to == for floats
authorRichard Biener <rguenther@suse.de>
Mon, 15 Nov 2021 11:13:40 +0000 (12:13 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 22 Jul 2022 09:43:12 +0000 (11:43 +0200)
commite2b97d6883a72b0c51dd0455acea43e21b5537d9
tree9b8063089dc60ed8b3801cb261d4e257d0430c68
parentff408622a5f8fb395e5584a494aaaad05b3611db
middle-end/103193 - avoid canonicalizing <= and >= to == for floats

This avoids doing aforementioned canoncalization when -ftrapping-math
is in effect and we honor NaNs.

2021-11-15  Richard Biener  <rguenther@suse.de>

PR middle-end/103193
* match.pd: Avoid canonicalizing (le/ge @0 @0) to (eq @0 @0)
with NaNs and -ftrapping-math.

(cherry picked from commit d9ca2ca381e44a332703155d07b50b84aa21f80d)
gcc/match.pd
This page took 0.051748 seconds and 5 git commands to generate.