Files
clang-p2996/llvm/lib/Transforms/Scalar/EarlyCSE.cpp
Fraser Cormack d808ad822a [EarlyCSE] Fix crash when optimizing masked loads/stores
With opaque pointers, it is possible for EarlyCSE to encounter masked
load/store intrinsics which access the same pointer value but with
different incompatible types. These cannot form valid replacements
(without explicit casting, which we don't yet do even for regular
load/store instructions) so should be prevented.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D141613
2023-01-12 17:31:36 +00:00

70 KiB