If we simplify an instruction to itself, we do not need to add a user to
itself. For congruence classes with a defining expression, we already
use a similar logic.
Fixes PR38259.
Differential D51168
[NewGVN] Make sure we do not add a user to itself. fhahn on Aug 23 2018, 8:53 AM. Authored by
Details If we simplify an instruction to itself, we do not need to add a user to Fixes PR38259.
Diff Detail Event TimelineComment Actions I don't really know the relevant code well enough, and I don't think I'll have time to study it in the near future. You might want to ask on llvmdev to see if there's anyone interested in reviewing NewGVN patches. Comment Actions I'll take a look early next week. Sorry, I don't work on scalar optimizations anymore on llvm these days, so I need to page this code in again. Comment Actions @efriedma thanks for all the reviews you did already for NewGVN related changes, I really appreciate it! Thanks for the suggestion, I guess I could prepare a few additional patches and send some kind of status update with them to llvmdev. That would be great! Comment Actions Thank you very much Davide :) In case you are interested in reviewing another small NewGVN patch, there would be D51595. |