Revert "[DSE] Eliminate noop store even through has clobbering between LoadI and...
authorNikita Popov <npopov@redhat.com>
Fri, 2 Sep 2022 07:28:48 +0000 (09:28 +0200)
committerNikita Popov <npopov@redhat.com>
Fri, 2 Sep 2022 07:28:48 +0000 (09:28 +0200)
commitc453e5b901ccaf9e7102575d6b14f190acc703be
tree82c4a8376b3648f970c6bf23f13bc873b35e0f97
parent639d9122825d2f697d2dadc396c2f872f2a97921
Revert "[DSE] Eliminate noop store even through has clobbering between LoadI and StoreI"

This reverts commit cd8f3e75813995c1d2da35370ffcf5af3aff9c2f.

As pointed out by Eli on the review, this is missing an alignment
check. The value might be written at an offset.
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
llvm/test/Transforms/DeadStoreElimination/stores-of-existing-values.ll