https://github.com/llvm/llvm-project/issues/55914
When counting instructions to compare with threshold debug instructions need to be ignored in order to be invariant wrt to debuginfo
Differential D127208
MachineSink debug invariance markus on Jun 7 2022, 5:27 AM. Authored by
Details
https://github.com/llvm/llvm-project/issues/55914 When counting instructions to compare with threshold debug instructions need to be ignored in order to be invariant wrt to debuginfo
Diff Detail
Unit Tests Event TimelineComment Actions Should add a .mir test
Comment Actions
+1 This change looks ok to me but FTR I haven't touched the MachineSink pass before.
|
One issue with this helper is that it needs to iterate over all instructions in the block to count them and the limit is used to decide whether the block is too big to process.
Not sure there's a good alternative, but maybe have something like sizeWIthoutDebugLargerThan(x) so we can at least bail out once the limit is reached.