[AggressiveInstCombine] Handle the insert point of the merged load correctly.
authorbipmis <biplob.mishra@arm.com>
Tue, 29 Nov 2022 10:53:51 +0000 (10:53 +0000)
committerbipmis <biplob.mishra@arm.com>
Tue, 29 Nov 2022 10:53:51 +0000 (10:53 +0000)
commite9393789a9fa95ea1d7df71aa8f164f043d7da33
treefcc50175afd35ce069d8299a206f1e33000c6c3c
parent3ea6a9a469fde168c527b1c34c09f6d684ec86af
[AggressiveInstCombine] Handle the insert point of the merged load correctly.

This patch updates the load insert point of the merged load in AggressiveInstCombine().
This is done to handle the reported test breaks by handling Alias Analysis correctly.

Differential Revision: https://reviews.llvm.org/D137201
llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
llvm/test/Transforms/AggressiveInstCombine/AArch64/or-load.ll
llvm/test/Transforms/AggressiveInstCombine/X86/or-load.ll