This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Fix warnings in sve-ld1-addressing-mode-reg-imm.ll
ClosedPublic

Authored by david-arm on Jul 3 2020, 3:48 AM.

Details

Summary

For the GetElementPtr case in function

AddressingModeMatcher::matchOperationAddr

I've changed the code to use the TypeSize class instead of relying
upon the implicit conversion to a uint64_t. As part of this we now
check for scalable types and if we encounter one just bail out for
now as the subsequent optimisations doesn't currently support them.

This changes fixes up all warnings in the following tests:

llvm/test/CodeGen/AArch64/sve-ld1-addressing-mode-reg-imm.ll
llvm/test/CodeGen/AArch64/sve-st1-addressing-mode-reg-imm.ll

Diff Detail

Event Timeline

david-arm created this revision.Jul 3 2020, 3:48 AM
efriedma accepted this revision.Jul 7 2020, 3:37 PM

LGTM

This revision is now accepted and ready to land.Jul 7 2020, 3:37 PM
This revision was automatically updated to reflect the committed changes.