This is an archive of the discontinued LLVM Phabricator instance.

GVN small fix
ClosedPublic

Authored by Prazek on Sep 17 2015, 12:43 AM.

Details

Summary

Under the if (Dep.isClobber()) there was another if (Dep.isClobber())

Diff Detail

Event Timeline

Prazek updated this revision to Diff 34970.Sep 17 2015, 12:43 AM
Prazek retitled this revision from to GVN small fix.
Prazek updated this object.
Prazek added reviewers: rsmith, nlewycky, majnemer.
Prazek added a subscriber: llvm-commits.
vsk added a subscriber: vsk.Sep 17 2015, 12:50 AM

It doesn't look like the conditional you've deleted is nested within the first "Dep.isClobber()" block.

The if starts at 1855 and ends at 1942 right? So it ends just before new if with the sem operand

It only makes sense if Dep could be changed in the previous if, but I don't see it is changed, and tests neither

vsk added a comment.Sep 17 2015, 7:03 AM

Oh sorry! This looks fine.

dberlin edited edge metadata.Sep 17 2015, 1:21 PM

Yeah, this looks right, and fixes some confusing logic.
Please commit it.

Prazek accepted this revision.Sep 17 2015, 11:08 PM
Prazek added a reviewer: Prazek.
This revision is now accepted and ready to land.Sep 17 2015, 11:08 PM
Prazek closed this revision.Sep 17 2015, 11:08 PM