[all-commits] [llvm/llvm-project] 3de29a: [IRSim] Ignore debug instructions when creating ca...
Andrew Litteken via All-commits
all-commits at lists.llvm.org
Tue Apr 19 11:18:44 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3de29ad20955eb8ed68e831795bf55bfe9fbe58b
https://github.com/llvm/llvm-project/commit/3de29ad20955eb8ed68e831795bf55bfe9fbe58b
Author: Andrew Litteken <andrew.litteken at gmail.com>
Date: 2022-04-19 (Tue, 19 Apr 2022)
Changed paths:
M llvm/lib/Analysis/IRSimilarityIdentifier.cpp
A llvm/test/Analysis/IRSimilarityIdentifier/debug-inst-starts-block.ll
Log Message:
-----------
[IRSim] Ignore debug instructions when creating canonical numbering
When constructing canonical relationships between two regions, the first instruction of a basic block from the first region is used to find the corresponding basic block from the second region. However, debug instructions are not included in similarity matching, and therefore do not have a canonical numbering. This patch makes sure to ignore the debug instructions when finding the first instruction in a basic block.
Reviewer: paquette
Differential Revision: https://reviews.llvm.org/D123903
More information about the All-commits
mailing list