]> git.ipfire.org Git - thirdparty/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>
Wed, 24 Nov 2021 10:02:13 +0000 (11:02 +0100)
commitd9ca2ca381e44a332703155d07b50b84aa21f80d
treeadce1c72b1d680be1b4505e749f92cd15286570f
parent5bca26742cf3357bf4e20ec97eee4c7f7de17ce0
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.
gcc/match.pd