aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/MetadataLoader.cpp
diff options
context:
space:
mode:
authorJustin Fargnoli <34139864+justinfargnoli@users.noreply.github.com>2023-10-22 15:34:39 -0700
committerGitHub <noreply@github.com>2023-10-22 15:34:39 -0700
commit6833a3808f7ba14247f3ce13d68df0bca991f354 (patch)
treef6c461346e6e9514677ffdf45fd3b6336028f9cf /llvm/lib/Bitcode/Reader/MetadataLoader.cpp
parent508a697acd1804cd965d888ffa0c4d404c4095b3 (diff)
downloadllvm-6833a3808f7ba14247f3ce13d68df0bca991f354.zip
llvm-6833a3808f7ba14247f3ce13d68df0bca991f354.tar.gz
llvm-6833a3808f7ba14247f3ce13d68df0bca991f354.tar.bz2
[mlir][DeadCodeAnalysis] Don't Require `RegionBranchTerminatorOpInterface` in `visitRegionTerminator()` (#69043)
Fix for a crash reported in #64975. The crash occurs in the cast located [here](https://github.com/llvm/llvm-project/blob/ece5dd101c7e4dc2fd23428abd312f75fd3d3eaf/mlir/lib/Analysis/DataFlow/DeadCodeAnalysis.cpp#L262) because `llvm.unreachable` doesn't implement `RegionBranchTerminatorOpInterface`. The crash is caused by `DeadCodeAnalysis` assuming that `isa<RegionBranchOpInterface>(op->getParentOp())` implies `isa<RegionBranchTerminatorOpInterface>(op)` in `DeadCodeAnalysis::visit()`. This patch tried to fix this by enabling the analysis to proceed regardless of whether `op` is a `RegionBranchTerminatorOpInterface`.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
0 files changed, 0 insertions, 0 deletions