[PATCH] D16263: [CodeGenPrepare] Also consider metadata uses

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 20 11:37:55 PST 2016


> On Jan 16, 2016, at 9:01 PM, Keno Fischer <kfischer at college.harvard.edu> wrote:
> 
> loladiro added a comment.
> 
> Yeah, I was fearing something like that, although I had hoped that since this won't actually show  up in the generated assembly (or at least it shouldn't), it might be ok. In any case, I don't think this is representable in debug info currently without having an actual trunc instruction. We could modify the DIExpression to be able to express truncation, but that's somewhat tricky, since DWARF does not have such an operation. @aprantl, thoughts?

Is the problem the Verifier? Because DWARF expressions are supposed to describe the location of a value rather than the value a truncation operation doesn’t necessarily make sense.

-- adrian


More information about the llvm-commits mailing list