forked from OSchip/llvm-project
b13f6b0fe0
I don't know anything about debug info, but this seems like more work should be necessary. This constructs a new IRBuilder and reconstructs the original divides rather than moving the original. One problem this has is if a div/rem pair are handled, both end up with the same debugloc. I'm not sure how to fix this, since this uses a cache when it sees the same input operands again, which will have the first instance's location attached. |
||
---|---|---|
.. | ||
addressing-modes.ll | ||
bypass-slow-div-debug-info.ll | ||
lit.local.cfg | ||
no-sink-addrspacecast.ll | ||
sink-addrspacecast.ll |