This is an archive of the discontinued LLVM Phabricator instance.

Demo fix for performance-move-const-arg (WIP)
ClosedPublic

Authored by mehdi_amini on Dec 23 2021, 2:22 PM.

Diff Detail

Event Timeline

mehdi_amini created this revision.Dec 23 2021, 2:22 PM
mehdi_amini requested review of this revision.Dec 23 2021, 2:22 PM
Mogball accepted this revision.Dec 23 2021, 3:33 PM
This revision is now accepted and ready to land.Dec 23 2021, 3:33 PM
grandinj added inline comments.
mlir/lib/Dialect/DLTI/DLTI.cpp
206 ↗(On Diff #396098)

in this case, it is more likely that the checker has found a bug, where the loop variable should not be const

mehdi_amini added inline comments.Dec 24 2021, 4:35 PM
mlir/lib/Dialect/DLTI/DLTI.cpp
206 ↗(On Diff #396098)

Thanks for the hint!
I'll fix this manually.

rriddle accepted this revision.Jan 1 2022, 3:34 AM

LGTM + the bug that Noel pointed out.

mehdi_amini abandoned this revision.Jan 1 2022, 5:16 PM
mehdi_amini reclaimed this revision.
This revision is now accepted and ready to land.Jan 1 2022, 5:16 PM