This patch updates some code responsible the skip debug info to use
BasicBlock::instructionsWithoutDebug. I think this makes things
slightly simpler and more direct.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Thanks, Florian. This is loosely related to D46199. See comments there. We need to consciously try using (or even creating) generically reusable code like this, instead of each file having it's own "skip this, skip that".
Comment Actions
That was the intention behind adding BB::instructionsWithoutDebug. It should be applicable to a wide range of cases and I will try to move existing code slowly towards using it. I think there might be a case for having a generic utility function that skips lifetime/assume intrinisics. But at least the few passes I had a look at so far seemed to have problems dealing with those intrinsics in the first place.