Check for legal zext 'sinks' before inserting a trunc.
I think this resolves some/most/all of the issue in D111237. I won't have the time to fix this if it's broken though.
edit: I setup a stage 2 on my mac and this looks fine enough.
Differential D115451
[TypePromotion] Avoid some unnecessary truncs samparker on Dec 9 2021, 8:47 AM. Authored by
Details Check for legal zext 'sinks' before inserting a trunc. I think this resolves some/most/all of the issue in D111237. edit: I setup a stage 2 on my mac and this looks fine enough.
Diff Detail
Event TimelineComment Actions Sorry for the delay. This doesn't fix the original case unfortunately, as that version doesn't start with an icmp. The test case is a little different with the loads feeding the loop condition. |