[all-commits] [llvm/llvm-project] 3f8711: [InstCombine] Fix miscompilation in PR83947 (#83993)
Yingwei Zheng via All-commits
all-commits at lists.llvm.org
Tue Mar 12 22:07:08 PDT 2024
Branch: refs/heads/release/18.x
Home: https://github.com/llvm/llvm-project
Commit: 3f8711fc5e01685f0a751ef296d16cf9a1f4fd4d
https://github.com/llvm/llvm-project/commit/3f8711fc5e01685f0a751ef296d16cf9a1f4fd4d
Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
Date: 2024-03-12 (Tue, 12 Mar 2024)
Changed paths:
M llvm/include/llvm/Analysis/VectorUtils.h
M llvm/lib/Analysis/VectorUtils.cpp
M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
M llvm/test/Transforms/InstCombine/masked_intrinsics.ll
A llvm/test/Transforms/InstCombine/pr83947.ll
Log Message:
-----------
[InstCombine] Fix miscompilation in PR83947 (#83993)
https://github.com/llvm/llvm-project/blob/762f762504967efbe159db5c737154b989afc9bb/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp#L394-L407
Comment from @topperc:
> This transforms assumes the mask is a non-zero splat. We only know its
a splat and not provably all 0s. The mask is a constexpr that includes
the address of the global variable. We can't resolve the constant
expression to an exact value.
Fixes #83947.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list