[PATCH] D123408: [InstCombine] Limit folding of cast into PHI

Zaara Syeda via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 13 07:00:32 PDT 2022


syzaara added a comment.

In D123408#3573723 <https://reviews.llvm.org/D123408#3573723>, @spatel wrote:

> In D123408#3572528 <https://reviews.llvm.org/D123408#3572528>, @mstorsjo wrote:
>
>>> afa192cfb604 <https://reviews.llvm.org/rGafa192cfb6049a15c5542d132d500b910b802c74>
>>
>> That commit causes breakage for me - one file which used to compile in around a second now hangs (doesn't complete in many minutes at least).
>>
>> To reproduce, download https://martin.st/temp/remap-preproc.c and try to compile it with `clang -target x86_64-w64-mingw32 -w -c -O2 remap-preproc.c`.
>
> I reverted that commit. I do have an updated patch that accounts for the problem pattern that caused the infinite loop (blame constant expressions...again). Between that and D127499 <https://reviews.llvm.org/D127499>, I think it's safe to abandon this patch.

Yes, I tested the motivating example with D127499 <https://reviews.llvm.org/D127499>, and it does resolve the issue. I will abandon this patch now. Thank you.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123408/new/

https://reviews.llvm.org/D123408



More information about the llvm-commits mailing list