[flang-commits] [PATCH] D129584: Lower F08 bit-population count intrinsics
Tarun Prabhu via Phabricator via flang-commits
flang-commits at lists.llvm.org
Tue Jul 12 14:14:09 PDT 2022
tarunprabhu updated this revision to Diff 444080.
tarunprabhu edited the summary of this revision.
tarunprabhu added a comment.
Use LLVM intrinsics instead of calculating `POPCNT` by hand.
Add implementation and tests for `LEADZ` and `TRAILZ` in addition to `POPCNT` and `POPPAR` since they are also related.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129584/new/
https://reviews.llvm.org/D129584
Files:
flang/lib/Lower/IntrinsicCall.cpp
flang/test/Evaluate/fold-popcnt.f90
flang/test/Lower/Intrinsics/leadz.f90
flang/test/Lower/Intrinsics/popcnt.f90
flang/test/Lower/Intrinsics/poppar.f90
flang/test/Lower/Intrinsics/trailz.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129584.444080.patch
Type: text/x-patch
Size: 28245 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220712/9daf983e/attachment-0001.bin>
More information about the flang-commits
mailing list