This is an archive of the discontinued LLVM Phabricator instance.

[LVI] Don't compute range on not guaranteed not to be undef condition in SelectInst
ClosedPublic

Authored by StephenFan on May 23 2023, 11:11 PM.

Diff Detail

Event Timeline

StephenFan created this revision.May 23 2023, 11:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2023, 11:11 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
StephenFan requested review of this revision.May 23 2023, 11:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2023, 11:11 PM
Allen added a subscriber: Allen.May 24 2023, 12:13 AM
Allen added inline comments.
llvm/test/Transforms/CorrelatedValuePropagation/select.ll
268

could it freeze the operand instead ? https://alive2.llvm.org/ce/z/xfwAJ2

nikic accepted this revision.May 24 2023, 12:28 AM

LGTM

This revision is now accepted and ready to land.May 24 2023, 12:28 AM
StephenFan added inline comments.May 24 2023, 12:41 AM
llvm/test/Transforms/CorrelatedValuePropagation/select.ll
268

Yes, we can do this. But LazyValueInfo is an analysis pass, we can not freeze it in it.