I'm not that familiar with ConstantRange or F2I, so a thorough review will be appreciated.
Note that I chose to fake a binary FNeg for ConstantRange purposes. I think this is safe and should limit regressions. Opposing views welcome...
Paths
| Differential D63941
[Float2Int] Add support for unary FNeg to Float2Int ClosedPublic Authored by cameron.mcinally on Jun 28 2019, 10:25 AM.
Details Summary I'm not that familiar with ConstantRange or F2I, so a thorough review will be appreciated. Note that I chose to fake a binary FNeg for ConstantRange purposes. I think this is safe and should limit regressions. Opposing views welcome...
Diff Detail Event TimelineComment Actions LGTM with one simplification. Thanks!
This revision is now accepted and ready to land.Jul 1 2019, 2:36 AM Closed by commit rL365324: [Float2Int] Add support for unary FNeg to Float2Int (authored by mcinally). · Explain WhyJul 8 2019, 7:49 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 207090 llvm/lib/Transforms/Scalar/Float2Int.cpp
llvm/test/Transforms/Float2Int/basic.ll
|
I would just use: