diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2020-06-10 20:47:52 -0400 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2020-06-18 17:27:19 -0400 |
commit | b13f6b0fe0263ea53f628652d31ec0983ca6b751 (patch) | |
tree | 8cc8134b8e44ce3db9db1fa66da0705020a94484 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | 27505565515ee8b680cfca3ca32211b2564a6a66 (diff) | |
download | llvm-b13f6b0fe0263ea53f628652d31ec0983ca6b751.zip llvm-b13f6b0fe0263ea53f628652d31ec0983ca6b751.tar.gz llvm-b13f6b0fe0263ea53f628652d31ec0983ca6b751.tar.bz2 |
BypassSlowDivision: Fix dropping debug info
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.
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions