Fixes https://llvm.org/bugs/show_bug.cgi?id=31758
Otherwise we ask for a domtree node that's not there, and we crash.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Transforms/Scalar/NewGVN.cpp | ||
---|---|---|
1946 | Do you need this lookup? |
Comment Actions
For archeologists:
16:22 < davide> DannyB: I may be mistaken, but are we marking users in unreachable blocks with InstrDFSNum == 0 ? Currently we just set that if an instruction is trivially dead 16:23 < davide> DannyB: in the example, the load with SSA name %tmp136 has InstrDFSNum zero, but the gep in bb138 has a non-zero InstrDFSNum 16:24 < DannyB> oh interesting 16:24 < DannyB> how did thathappen? 16:24 < DannyB> oh 16:24 < DannyB> yeah 16:24 < DannyB> you are right 16:24 < DannyB> because they may become reachable later 16:24 < davide> yeah
Do you need this lookup?
Won't localnum already be 0, because we now zero the dfs number for uses in unreachable blocks?