[llvm] e7bc737 - GlobalISel: Make LoadStoreOpt preserve all
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 25 06:42:31 PDT 2022
Author: Matt Arsenault
Date: 2022-06-25T09:24:54-04:00
New Revision: e7bc73739a00e471cb96527415e6819cebfc7e80
URL: https://github.com/llvm/llvm-project/commit/e7bc73739a00e471cb96527415e6819cebfc7e80
DIFF: https://github.com/llvm/llvm-project/commit/e7bc73739a00e471cb96527415e6819cebfc7e80.diff
LOG: GlobalISel: Make LoadStoreOpt preserve all
Avoids dropping CSE info analysis
Added:
Modified:
llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp
llvm/test/CodeGen/AArch64/GlobalISel/gisel-commandline-option.ll
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp b/llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp
index 0e56c781047a7..d4fbf7d15089b 100644
--- a/llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp
@@ -73,6 +73,7 @@ void LoadStoreOpt::init(MachineFunction &MF) {
void LoadStoreOpt::getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<AAResultsWrapperPass>();
+ AU.setPreservesAll();
getSelectionDAGFallbackAnalysisUsage(AU);
MachineFunctionPass::getAnalysisUsage(AU);
}
diff --git a/llvm/test/CodeGen/AArch64/GlobalISel/gisel-commandline-option.ll b/llvm/test/CodeGen/AArch64/GlobalISel/gisel-commandline-option.ll
index 10bdf08a528b1..422edaa5e09ca 100644
--- a/llvm/test/CodeGen/AArch64/GlobalISel/gisel-commandline-option.ll
+++ b/llvm/test/CodeGen/AArch64/GlobalISel/gisel-commandline-option.ll
@@ -61,9 +61,8 @@
; VERIFY-O0-NEXT: AArch64O0PreLegalizerCombiner
; VERIFY-NEXT: Verify generated machine code
; ENABLED-O1-NEXT: Basic Alias Analysis (stateless AA impl)
-; ENABLED-O1-NEXT: Function Alias Analysis Results
+; ENABLED-O1-NEXT: Function Alias Analysis Results
; ENABLED-O1-NEXT: LoadStoreOpt
-; ENABLED-O1-NEXT: Analysis containing CSE Info
; VERIFY-O0-NEXT: Analysis containing CSE Info
; ENABLED-NEXT: Legalizer
; VERIFY-NEXT: Verify generated machine code
More information about the llvm-commits
mailing list