The SUM function does appear to be safe to use, so remove the
experimental flag for the SUM operation.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM
flang/test/Transforms/simplifyintrinsics.fir | ||
---|---|---|
1 | nit: we may keep it here, if we are going to add tests for future experimental implementations in this file. |
flang/test/Transforms/simplifyintrinsics.fir | ||
---|---|---|
1 | No harm in having a separate file with "experimental" simplifications, This way it will be easier to distinguish the two. |
flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp | ||
---|---|---|
446–447 | This should of course be removed. New patch coming soon! :) |
flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp | ||
---|---|---|
447 | You should use RTNAME(Sum) instead of hardcoded function name. |
I think my patch is messed up, however. It seems to have included my refactoring as well, which should be a separate patch.
I'll try to fix tomorrow.
flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp | ||
---|---|---|
447 | Ah, very good point. I will make a separate patch, as this applies to more than the bits touched in this patch. |
This should of course be removed. New patch coming soon! :)