This is an archive of the discontinued LLVM Phabricator instance.

[Instcombine] Combine consecutive identical fences
ClosedPublic

Authored by davide on Jan 30 2017, 6:41 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

davide created this revision.Jan 30 2017, 6:41 PM
Bigcheese accepted this revision.Jan 30 2017, 6:49 PM

Looks fine to me as long as we've resolved the semantic issues here. I'd wait for what Chandler &&/|| David have to say.

This revision is now accepted and ready to land.Jan 30 2017, 6:49 PM

Looks fine to me as long as we've resolved the semantic issues here. I'd wait for what Chandler &&/|| David have to say.

Thanks Michael. I'll wait a bit and see if there are objections.

majnemer accepted this revision.Jan 31 2017, 8:33 AM

LGTM

lib/Transforms/InstCombine/InstCombineCalls.cpp
3275–3276 ↗(On Diff #86380)

I think you could just do if (FI.isIdenticalTo(NFI))

This revision was automatically updated to reflect the committed changes.
davide added inline comments.Jan 31 2017, 10:20 AM
lib/Transforms/InstCombine/InstCombineCalls.cpp
3275–3276 ↗(On Diff #86380)

I was actually looking for that function (but didn't find it), thanks for the review.