[mlir] Fix bug in ForwardDataFlowAnalysis solver
authorRiver Riddle <riddleriver@gmail.com>
Tue, 27 Apr 2021 21:27:08 +0000 (14:27 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Tue, 27 Apr 2021 21:31:27 +0000 (14:31 -0700)
commit82bcd985862892773fc9685aa6abcbb298267aa0
tree70d3fbb289557f1338a599747f051b56e2f66c43
parentcbce28f07e410cf46845a86621f93c8cd38eee6a
[mlir] Fix bug in ForwardDataFlowAnalysis solver

Explicitly check for uninitialized to prevent crashes in edge cases where the derived analysis creates a lattice element for a value that hasn't been visited yet.
mlir/lib/Analysis/DataFlowAnalysis.cpp