[all-commits] [llvm/llvm-project] c2dccf: [CodeGenPrepare] Reset the debug location when pro...
Davide Italiano via All-commits
all-commits at lists.llvm.org
Mon Jun 15 14:26:15 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: c2dccf9d5e34278cb2ed0a018405848850508b99
https://github.com/llvm/llvm-project/commit/c2dccf9d5e34278cb2ed0a018405848850508b99
Author: Davide Italiano <ditaliano at apple.com>
Date: 2020-06-15 (Mon, 15 Jun 2020)
Changed paths:
M llvm/lib/CodeGen/CodeGenPrepare.cpp
A llvm/test/Transforms/CodeGenPrepare/X86/promoted-trunc-loc.ll
Log Message:
-----------
[CodeGenPrepare] Reset the debug location when promoting trunc(s)
The promotion machinery in CGP moves instructions retaining
debug locations. When the transformation is local, this is mostly
correct, but when instructions are moved cross-BBs, this is not
always true and causes jumpiness in line tables. This is the first
of a series of commits. sext(s) and zext(s) need to be treated
similarly.
Differential Revision: https://reviews.llvm.org/D81879
More information about the All-commits
mailing list