[all-commits] [llvm/llvm-project] 85cd37: [GlobalISel] Fix known bits for G_ASSERT_ALIGN.
Amara Emerson via All-commits
all-commits at lists.llvm.org
Wed Sep 21 13:46:42 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 85cd376f706fe00833100bbc975db087aed9ad14
https://github.com/llvm/llvm-project/commit/85cd376f706fe00833100bbc975db087aed9ad14
Author: Amara Emerson <amara at apple.com>
Date: 2022-09-21 (Wed, 21 Sep 2022)
Changed paths:
M llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
M llvm/unittests/CodeGen/GlobalISel/KnownBitsTest.cpp
Log Message:
-----------
[GlobalISel] Fix known bits for G_ASSERT_ALIGN.
I don't know what was going on originally with these tests. It seems reasonable
to have the immediate be the same byte alignment unit as the IR, in which case
we need to take the log2 in order to set the right number of low bits.
This fixes a miscompile in chromium.
Differential Revision: https://reviews.llvm.org/D134380
More information about the All-commits
mailing list