[all-commits] [llvm/llvm-project] eca252: Use Log2_64_Ceil to compute PowerOf2Ceil (#67580)
AtariDreams via All-commits
all-commits at lists.llvm.org
Mon Jan 15 18:52:41 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: eca2529592b59fe2c4b2e06adf15900c7a2ca95f
https://github.com/llvm/llvm-project/commit/eca2529592b59fe2c4b2e06adf15900c7a2ca95f
Author: AtariDreams <83477269+AtariDreams at users.noreply.github.com>
Date: 2024-01-15 (Mon, 15 Jan 2024)
Changed paths:
M llvm/include/llvm/Support/MathExtras.h
Log Message:
-----------
Use Log2_64_Ceil to compute PowerOf2Ceil (#67580)
Instead of calling NextPowerOf2, which is only useful for constants,
we should call Log2_64_Ceil, which is faster because it uses compiler
intrinsics where supported.
More information about the All-commits
mailing list