aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorJeff Niu <jeff@modular.com>2022-07-30 22:20:08 -0400
committerJeff Niu <jeff@modular.com>2022-07-31 16:03:46 -0400
commit62fe67f9eb02cd5add1f70514fdcd1b324b14028 (patch)
treeef4515cc0c8513ad28b6ad861779557505c89844 /llvm/lib/CodeGen/MachineInstr.cpp
parent68b0aaad56a5fd216c97e8861c013eafc2cc653c (diff)
downloadllvm-62fe67f9eb02cd5add1f70514fdcd1b324b14028.zip
llvm-62fe67f9eb02cd5add1f70514fdcd1b324b14028.tar.gz
llvm-62fe67f9eb02cd5add1f70514fdcd1b324b14028.tar.bz2
[mlir][DCA] Fix visiting call ops when run at function scopes
When dead-code analysis is run at the scope of a function, call ops to other functions at the same level were being marked as unreachable, since the analysis optimistically assumes the call op to have no known predecessors and that all predecessors are known, but the callee would never get visited. This patch fixes the bug by checking if a referenced function is above the top-level op of the analysis, and is thus considered an external callable. Fixes #56830 Reviewed By: zero9178 Differential Revision: https://reviews.llvm.org/D130829
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions