[PATCH] D44571: [CGP] Avoid segmentation fault when doing PHI node simplifications

Bjorn Pettersson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 19 16:00:40 PDT 2018


bjope updated this revision to Diff 139018.
bjope added a comment.

Basically moved the solution from https://reviews.llvm.org/rL327250 into SimplificationTracker::ReplacePhi. This avoids the need for the DenseSet (with non-deterministic iteration) that was added in https://reviews.llvm.org/rL327250.

I also made sure that we recursively check if the new replacement already have been replaced when doing the simplifications for "already matched" nodes.


Repository:
  rL LLVM

https://reviews.llvm.org/D44571

Files:
  lib/CodeGen/CodeGenPrepare.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44571.139018.patch
Type: text/x-patch
Size: 10141 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180319/95344a14/attachment-0001.bin>


More information about the llvm-commits mailing list