[all-commits] [llvm/llvm-project] c9066c: [CGP] Fix the crash for combining address mode whe...
Andrew Wei via All-commits
all-commits at lists.llvm.org
Thu Aug 26 08:02:05 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c9066c5d37755c7d9049dd1fb7bd365bdef6155f
https://github.com/llvm/llvm-project/commit/c9066c5d37755c7d9049dd1fb7bd365bdef6155f
Author: Andrew Wei <weiwei64 at huawei.com>
Date: 2021-08-26 (Thu, 26 Aug 2021)
Changed paths:
M llvm/lib/CodeGen/CodeGenPrepare.cpp
A llvm/test/Transforms/CodeGenPrepare/AArch64/combine-address-mode.ll
Log Message:
-----------
[CGP] Fix the crash for combining address mode when having cyclic dependency
In the combination of addressing modes, when replacing the matched phi nodes,
sometimes the phi node to be replaced has been modified. For example,
there’s matcher set [A, B] and [C, A], which will have cyclic dependency:
A is replaced by B and C will be replaced by A. Because we tried to match new phi node
to another new phi node, we should ignore new phi nodes when mapping new phi node to old one.
Reviewed By: skatkov
Differential Revision: https://reviews.llvm.org/D108635
More information about the All-commits
mailing list