middle-end/102129 - avoid TER of possibly trapping expressions
authorRichard Biener <rguenther@suse.de>
Tue, 31 Aug 2021 07:13:20 +0000 (09:13 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 31 Aug 2021 09:38:01 +0000 (11:38 +0200)
commit5e57bacf6f3599efea7634470db84121641c80b0
tree931b4ea75778eaf33ec6f52abea8483852e7676f
parentdd779c509e56d9300ceb03e3b009d5e0411380b8
middle-end/102129 - avoid TER of possibly trapping expressions

The following avoids applying TER to possibly trapping expressions,
preventing a trapping FP multiplication to be moved across a call
that should not be executed.

2021-08-31  Richard Biener  <rguenther@suse.de>

PR middle-end/102129
* tree-ssa-ter.c (find_replaceable_in_bb): Do not move
possibly trapping expressions across calls.
gcc/tree-ssa-ter.c