[PATCH] D108635: [CGP] Fix the crash for combining address mode when having cyclic dependency

weiwei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 24 08:32:27 PDT 2021


wwei created this revision.
wwei added reviewers: skatkov, reames, aprantl, john.brawn, mkazantsev.
wwei added a project: LLVM.
Herald added a subscriber: hiraditya.
wwei requested review of this revision.
Herald added a subscriber: llvm-commits.

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 . So we need to update the second phi node in matcher set when the phi node is already replaced.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108635

Files:
  llvm/lib/CodeGen/CodeGenPrepare.cpp
  llvm/test/Transforms/CodeGenPrepare/AArch64/combine-address-mode.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108635.368354.patch
Type: text/x-patch
Size: 5899 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210824/7eeeb3b4/attachment.bin>


More information about the llvm-commits mailing list