This is an archive of the discontinued LLVM Phabricator instance.

[TargetLowering] Use Align in allowsMisalignedMemoryAccesses.
ClosedPublic

Authored by craig.topper on Feb 4 2021, 7:05 PM.

Diff Detail

Event Timeline

craig.topper created this revision.Feb 4 2021, 7:05 PM
craig.topper requested review of this revision.Feb 4 2021, 7:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 4 2021, 7:05 PM
Herald added subscribers: aheejin, wdng. · View Herald Transcript
craig.topper added inline comments.
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
1060

Note, this previously passed 0 and now passes 1.

arsenm accepted this revision.Feb 4 2021, 7:10 PM
arsenm added inline comments.
llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
1305

I think this doesn't need the .value

This revision is now accepted and ready to land.Feb 4 2021, 7:10 PM
craig.topper added inline comments.Feb 4 2021, 7:22 PM
llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
1305

I think I added it after getting a compile fail.

This revision was landed with ongoing or failed builds.Feb 4 2021, 7:32 PM
This revision was automatically updated to reflect the committed changes.

I had a similar patch - D82876 - but it never went through...
Thx for working on this!

I believe this patch will break the VE experimental target. Modifications to the following files are missing

llvm/lib/Target/VE/VEISelLowering.h
llvm/lib/Target/VE/VEISelLowering.cpp
llvm/lib/CodeGen/CodeGenPrepare.cpp
6938

This could be inlined AFAICT

llvm/lib/Target/AMDGPU/R600ISelLowering.cpp
1658

This can be turned into Alignment >= Align(4) which I believe is clearer.