llvm-project
cb740eba - [MergeICmps][DebugInfo] Preserve debug locations in mergeComparisons (#205796)

Commit
7 days ago
[MergeICmps][DebugInfo] Preserve debug locations in mergeComparisons (#205796) The mergeComparisons function in MergeICmps merges a chain of comparison blocks, generating new instructions inside of the merged block(s) to memcmp the contiguous blocks of memory being compared and perform a single branch based on the result. Some of the generated instructions take their debug locations directly from the first block in the comparison chain, but the icmp/memcmp and branch instructions generated are not assigned any debug location. This patch assigns a debug location to the comparison instructions from the merged location of all merged comparison instructions, and similarly assigns the branch instruction from the merged branch instructions.
Author
Parents
Loading