This is an archive of the discontinued LLVM Phabricator instance.

Handle casts changing pointer size in the vectorizer
ClosedPublic

Authored by rampitec on Aug 1 2019, 3:25 PM.

Details

Summary

Added code to truncate or shrink offsets so that we can continue
base pointer search if size has changed along the way.

Diff Detail

Repository
rL LLVM

Event Timeline

rampitec created this revision.Aug 1 2019, 3:25 PM

This one will go through our internal extended testing first, just to be sure it did not break anything.

tra added inline comments.Aug 1 2019, 4:26 PM
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
351–366 ↗(On Diff #212914)

This can probably be collapsed to OffsetA = OffsetA.sextOrTrunk(NewPtrBitWidth);
same for OffsetB & PtrDelta.

rampitec updated this revision to Diff 212929.Aug 1 2019, 4:41 PM
rampitec marked an inline comment as done.

Changes to sextOrTrunc().

tra accepted this revision.Aug 1 2019, 5:01 PM
This revision is now accepted and ready to land.Aug 1 2019, 5:01 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptAug 1 2019, 9:03 PM