[PATCH] D115804: [CodeGen] use saturating FP casts when compiling with "no-strict-float-cast-overflow"

Nikita Popov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 15 08:02:44 PST 2021


nikic added a comment.

Looks reasonable. Making float to int cast well defined is exactly why these intrinsics exist. Should we also drop the "string-float-cast-overflow" attribute, as UB is now prevented in a different way?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115804/new/

https://reviews.llvm.org/D115804



More information about the cfe-commits mailing list