This is an archive of the discontinued LLVM Phabricator instance.

[SLP]PR39774: Update references of the replaced external instructions.
ClosedPublic

Authored by ABataev on Nov 28 2018, 1:01 PM.

Details

Summary

An additional fix for PR39774. Need to update the references for the
RedcutionRoot instruction when it is replaced during the vectorization
phase to avoid compiler crash on reduction vectorization.

Diff Detail

Repository
rL LLVM

Event Timeline

ABataev created this revision.Nov 28 2018, 1:01 PM

Again, we'll need another reviewer to approve this...but let me check my understanding: I think this bug is independent of the fix from D54955? So is it possible to come up with a smaller test case to demonstrate that or would we always hit the previous ReductionRoot problem first?

Again, we'll need another reviewer to approve this...but let me check my understanding: I think this bug is independent of the fix from D54955? So is it possible to come up with a smaller test case to demonstrate that or would we always hit the previous ReductionRoot problem first?

It is not independent, it is the second part of the same bugfix. The first patch fixed the cost model, but did not include the reference update. Anyway, I'll just add another RUN directive with this new parameters and will keep the original test as is.

ABataev updated this revision to Diff 175866.Nov 29 2018, 6:57 AM

Added the new test run independent from the previous one.

RKSimon accepted this revision.Nov 29 2018, 3:58 PM

LGTM - thanks

This revision is now accepted and ready to land.Nov 29 2018, 3:58 PM
This revision was automatically updated to reflect the committed changes.