[all-commits] [llvm/llvm-project] 54971c: [llvm] Use llvm::bit_ceil (NFC)
kazutakahirata via All-commits
all-commits at lists.llvm.org
Sun Jan 29 00:13:06 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 54971c8a39e8b682e7a042eee33f94a8283d8305
https://github.com/llvm/llvm-project/commit/54971c8a39e8b682e7a042eee33f94a8283d8305
Author: Kazu Hirata <kazu at google.com>
Date: 2023-01-29 (Sun, 29 Jan 2023)
Changed paths:
M llvm/include/llvm/ADT/DenseMap.h
M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
Log Message:
-----------
[llvm] Use llvm::bit_ceil (NFC)
If X is nonzero, NextPowerOf2(X - 1) is equivalent to
llvm::bit_ceil(X). In this patch, std::max guarantees that X is
nonzero.
More information about the All-commits
mailing list