diff options
author | Ramiro Leal-Cavazos <ramiroleal050@gmail.com> | 2023-04-20 18:00:08 +0000 |
---|---|---|
committer | Robert Suderman <suderman@google.com> | 2023-04-20 18:08:19 +0000 |
commit | ab2fc9521ec606603412645d4a4b3cf456acd153 (patch) | |
tree | 709b083f0984cb9d7b178c7c2dca5c8474715132 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | bbc983d33a17b87012c18053a816a8984ab191ca (diff) | |
download | llvm-ab2fc9521ec606603412645d4a4b3cf456acd153.zip llvm-ab2fc9521ec606603412645d4a4b3cf456acd153.tar.gz llvm-ab2fc9521ec606603412645d4a4b3cf456acd153.tar.bz2 |
Fix handling of special and large vals in expand pattern for `round`
The current expand pattern for `math.round` does not handle the
special values -0.0, +-inf, and +-nan correctly. It also does not
properly handle values with magnitude |x| >= 2^23. Lastly, the pattern
generates invalid IR when the input to `math.round` is a vector. This
patch fixes these issues.
Reviewed By: rsuderman
Differential Revision: https://reviews.llvm.org/D148398
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions