This is an archive of the discontinued LLVM Phabricator instance.

[IndVarSimplify] Integrate changes in D18777 and D18867 which depend on each other
AbandonedPublic

Authored by lihuang on Aug 5 2016, 2:37 PM.

Details

Reviewers
None
Summary

Integrate changes in D18777 and D18867 which depend on each other.

Finally, changes in D18777 and D18867 depend on each other and should be checked in at the same time, otherwise will break tests.

Diff Detail

Event Timeline

lihuang updated this revision to Diff 67021.Aug 5 2016, 2:37 PM
lihuang retitled this revision from to [IndVarSimplify] Integrate changes in D18777 and D18867 which depend on each other.
lihuang updated this object.
lihuang added a reviewer: sanjoy.
lihuang added a subscriber: llvm-commits.

Hi Sanjoy,

I have merged the changes in D18777 and D18867 because they depend on each other and should go in together, and have rebased the change on top of latest source. Do you think this whole thing is ready to go in?

Thanks,
Li Huang

sanjoy edited edge metadata.Aug 9 2016, 11:21 AM

Hi Li,

Hi Sanjoy,

I have merged the changes in D18777 and D18867 because they depend on each other and should go in together, and have rebased the change on top of latest source. Do you think this whole thing is ready to go in?

Why do they depend on each other? If they individually are correct and pass all tests (and only need the other one to be fully effective) then they should go in separately.

  • Sanjoy

Hi Sanjoy,

Actually I was wrong here, the change in IndVarSimplify depends on that of ValueTracking but not the opposite.

The change in IndVarSimplify uses ValueTracking's isKnownNonNegative to test the signedness of IV and IV users, so without the change in ValueTracking the iv-widen tests will fail. I thought the tests I made for ValueTracking changes also requires IndVars change but they actually don't.

Sorry about this, just ignore this patch.

-Li Huang

sanjoy resigned from this revision.Aug 9 2016, 10:08 PM
sanjoy removed a reviewer: sanjoy.
lihuang abandoned this revision.Aug 10 2016, 9:49 AM