[all-commits] [llvm/llvm-project] 191c1d: APFloat: Add isSmallestNormalized predicate function
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Thu Dec 15 11:04:56 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 191c1d95e880227a13687c77c940f63baf88c594
https://github.com/llvm/llvm-project/commit/191c1d95e880227a13687c77c940f63baf88c594
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2022-12-15 (Thu, 15 Dec 2022)
Changed paths:
M llvm/include/llvm/ADT/APFloat.h
M llvm/lib/Support/APFloat.cpp
M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
M llvm/unittests/ADT/APFloatTest.cpp
Log Message:
-----------
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.
More information about the All-commits
mailing list