LLVM/project 93b90a5llvm/include/llvm/CodeGen ReachingDefAnalysis.h, llvm/lib/CodeGen ReachingDefAnalysis.cpp

[ReachingDefAnalysis] Fix management of MBBFrameObjsReachingDefs (#124943)

MBBFrameObjsReachingDefs was not being built correctly since we were not
inserting into a reference of Frame2InstrIdx. If there was multiple
stack slot defs in the same basic block, then the bug would occur. This
PR fixes this problem while simplifying the insertion logic.

Additionally, when lookup into MBBFrameObjsReachingDefs was occurring,
there was a chance that there was no entry in the map, in the case that
there was no reaching def. This was causing us to return a default
value, which may or may not have been correct. This patch returns the
correct value now.
DeltaFile
+40-0llvm/test/CodeGen/RISCV/rda-stack.mir
+7-12llvm/lib/CodeGen/ReachingDefAnalysis.cpp
+5-5llvm/include/llvm/CodeGen/ReachingDefAnalysis.h
+52-173 files

UnifiedSplitRaw