[mlir][LLVM] Delay debug intrinsic import to ensure dominance
This commit ensures that debug intrinsics are imported after all other instructions of a function were imported. Debug intrinsics in LLVM are excluded from the define-before-use invariant, i.e., they can reference SSA values that do not dominate them. So far, we had implemented checks to stop the import of such intrinsics, but there were always additional cases that were not covered (the latest being terminators that define such used values). Reviewed By: gysit, zero9178 Differential Revision: https://reviews.llvm.org/D157496
parent
b7e6e568
Please register or sign in to comment