aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/PrologEpilogInserter.cpp
diff options
context:
space:
mode:
authorBjörn Pettersson <bjorn.a.pettersson@ericsson.com>2025-04-23 12:52:00 +0200
committerGitHub <noreply@github.com>2025-04-23 12:52:00 +0200
commit2a9f77f6bd48d757b2d45aadcb6cf76ef4b4ef32 (patch)
tree7be75ea696f4bf11f24bc8c80867cd51b3980ce4 /llvm/lib/CodeGen/PrologEpilogInserter.cpp
parent717efc0a994dfc5b2ed65ddb13b47fb917c9a467 (diff)
downloadllvm-2a9f77f6bd48d757b2d45aadcb6cf76ef4b4ef32.zip
llvm-2a9f77f6bd48d757b2d45aadcb6cf76ef4b4ef32.tar.gz
llvm-2a9f77f6bd48d757b2d45aadcb6cf76ef4b4ef32.tar.bz2
[Reassociate] Invalidate analysis passes after canonicalizeOperands (#136835)
When ranking operands for an expression tree the reassociate pass also perform canonicalization, putting constants on the right hand side. Such transforms was however not registered as modifying the IR. So at the end of the pass, if not having made any other changes, the pass returned that all analyses should be kept. With this patch we make sure to set MadeChange to true when modifying the IR via canonicalizeOperands. This is to make sure analyses such as DemandedBits are properly invalidated when instructions are modified.
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
0 files changed, 0 insertions, 0 deletions