Details
- Reviewers
efriedma
Diff Detail
Event Timeline
Update comment
lib/Transforms/Utils/SimplifyLibCalls.cpp | ||
---|---|---|
2148–2158 | The InstCombine part of the patch adds the shrinking with the intrinsics |
For anyone else following along with a copy of IEEE 754, this is the roundToIntegral* family of functions.
Aren't llvm.rint() and llvm.nearbyint() precisely equivalent? We should probably get rid of llvm.rint()... (we can add it back once we actually start modeling FP exceptions).
test/Transforms/InstCombine/win-math.ll | ||
---|---|---|
273 | Windows doesn't have round()? Weird. |
I think so.
test/Transforms/InstCombine/win-math.ll | ||
---|---|---|
273 | I'm surprised too https://msdn.microsoft.com/en-us/library/dn353646.aspx |
I'd say keep it until we agree we're going to remove it.
lib/Transforms/InstCombine/InstCombineCalls.cpp | ||
---|---|---|
1642 | Why this newline. |
I would say map @rint() to @llvm.nearbyint... but otherwise leave in the @llvm.rint() handling. We can kill off @llvm.rint() in a followup.
The intrinsics aren't used nearly as much as the function calls, so it's possible this will expose issues... but that's fine, I think.
Why this newline.