[LoongArch] Override TargetLowering::isOffsetFoldingLegal()
commitc437412fbc1e616d623271cfca03bce009fd50f3
authorwanglei <wanglei@loongson.cn>
Thu, 11 Aug 2022 02:50:11 +0000 (11 10:50 +0800)
committerWeining Lu <luweining@loongson.cn>
Thu, 11 Aug 2022 03:26:54 +0000 (11 11:26 +0800)
treea8f6f8361912b7ba8b7fe71122177a8751e77d32
parent21bf59c92af11f2f1e4482e530993c1fb51b9d88
[LoongArch] Override TargetLowering::isOffsetFoldingLegal()

This patch disable GlobalAddress+Offset folding.

Differential Revision: https://reviews.llvm.org/D131491
llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
llvm/lib/Target/LoongArch/LoongArchISelLowering.h
llvm/test/CodeGen/LoongArch/ir-instruction/load-store.ll