This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Presburger] Fix subtract processing extra inequalities
ClosedPublic

Authored by Groverkss on Jun 7 2022, 9:40 AM.

Details

Summary

This patch fixes a bug in PresburgeRelation::subtract that made it process the
inequality at index 0, multiple times. This was caused by allocating memory
instead of reserving memory in llvm::SmallVector.

Diff Detail

Event Timeline

Groverkss created this revision.Jun 7 2022, 9:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 7 2022, 9:40 AM
Groverkss requested review of this revision.Jun 7 2022, 9:40 AM
arjunp accepted this revision.Jun 7 2022, 10:05 AM

Thanks for fixing this. It should be SmallVector in the description.

This revision is now accepted and ready to land.Jun 7 2022, 10:05 AM
Groverkss edited the summary of this revision. (Show Details)Jun 7 2022, 10:08 AM