[llvm] [InstCombine] Fold (A & B) - (A & ~B) --> B - (A ^ B) (PR #79717)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 9 15:56:11 PST 2024
dtcxzyw wrote:
> _Bytes = _Bytes & ~(_Align - 1); Is a common idiom for rounding up to the nearest alignment.
Should be `(_Bytes + _Align - 1) & ~(_Align - 1)`.
https://github.com/llvm/llvm-project/pull/79717
More information about the llvm-commits
mailing list