This is an archive of the discontinued LLVM Phabricator instance.

DAG/GlobalISel: Fix broken/redundant setting of MODereferenceable
ClosedPublic

Authored by arsenm on Jan 13 2023, 12:34 PM.

Details

Summary

This was incorrectly setting dereferenceable on unaligned
operands. getLoadMemOperandFlags does the alignment dereferenceabilty
check without alignment, and then both paths went on to check
isDereferenceableAndAlignedPointer. Make getLoadMemOperandFlags check
isDereferenceableAndAlignedPointer, and remove the second call.

Diff Detail

Event Timeline

arsenm created this revision.Jan 13 2023, 12:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 13 2023, 12:34 PM
arsenm requested review of this revision.Jan 13 2023, 12:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 13 2023, 12:34 PM
Herald added subscribers: aheejin, wdng. · View Herald Transcript
arsenm updated this revision to Diff 489101.Jan 13 2023, 12:35 PM

Forgot to save better test update

This revision is now accepted and ready to land.Jan 13 2023, 1:43 PM