[GVN][VNCoercion] Remove load widening leftovers (NFCI)
authorNikita Popov <npopov@redhat.com>
Wed, 12 Apr 2023 14:29:58 +0000 (16:29 +0200)
committerNikita Popov <npopov@redhat.com>
Wed, 12 Apr 2023 14:32:46 +0000 (16:32 +0200)
commit6e78fd58cd06e84a4358ef189543e080d2b913aa
treea54d2aea0c20c9e9bf3c548c52a86ea5904408bd
parentd9826433f31cd081d0229d47d7982b5bf3c0055f
[GVN][VNCoercion] Remove load widening leftovers (NFCI)

GVN load widening was disabled in D24096. This removes various
support code that is no longer relevant.

The way this works nowadays is that we return PartialAlias with
an offset from BasicAA and this gets passed on as a clobber by
MDA. However, PartialAlias will only be returned if the load is
properly nested inside the other load.

This just removes the bulk of the code, but some additional
cleanup can be done here now that we don't need to distinguish
between load and store cases.
llvm/lib/Transforms/Scalar/GVN.cpp
llvm/lib/Transforms/Utils/VNCoercion.cpp