diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2022-12-01 09:12:20 -0500 |
---|---|---|
committer | Matt Arsenault <arsenm2@gmail.com> | 2022-12-15 14:04:26 -0500 |
commit | 191c1d95e880227a13687c77c940f63baf88c594 (patch) | |
tree | 6b94632a7afbc4e624f8a1632226ee3cd1757842 /llvm/unittests/Analysis/ValueTrackingTest.cpp | |
parent | 992bee045b7586774ffd539bb46d9a1e22896f60 (diff) | |
download | llvm-191c1d95e880227a13687c77c940f63baf88c594.zip llvm-191c1d95e880227a13687c77c940f63baf88c594.tar.gz llvm-191c1d95e880227a13687c77c940f63baf88c594.tar.bz2 |
APFloat: Add isSmallestNormalized predicate function
It was annoying to write the check for this in the one case I added,
and I'm planning on adding another, so add a convenient PatternMatch
like for other special case values.
I have no idea what is going on in the DoubleAPFloat case, I reversed
this from the makeSmallestNormalized test. Also could implement this
as *this == getSmallestNormalized() for less code, but this avoids the
construction of a temporary APFloat copy and follows the style of the
other functions.
Diffstat (limited to 'llvm/unittests/Analysis/ValueTrackingTest.cpp')
0 files changed, 0 insertions, 0 deletions