This is an archive of the discontinued LLVM Phabricator instance.

[ValueTracking] Imply poison if ValAssumePoison is identical to V
Needs ReviewPublic

Authored by StephenFan on May 5 2023, 12:58 AM.

Details

Diff Detail

Event Timeline

StephenFan created this revision.May 5 2023, 12:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2023, 12:58 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
StephenFan requested review of this revision.May 5 2023, 12:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2023, 12:58 AM
nikic added a comment.May 5 2023, 1:07 AM

What is the motivation for this? Generally speaking, we leave this to CSE/GVN and don't try to handle identical instructions.

What is the motivation for this? Generally speaking, we leave this to CSE/GVN and don't try to handle identical instructions.

There are some regressions in D149404. I want to solve some of these regressions in that patch. For example, test auto_gen_5_logical_fmf in and-fcmp.ll.
And I found that multiple instcombines would be executed before GVN. I am concerned that the regressions in D149404 would make some redundancies no longer be optimized by GVN. But I haven't looked in depth yet.