This is an archive of the discontinued LLVM Phabricator instance.

[SVE] Fix TypeSize warning in llvm::getGEPInductionOperand
ClosedPublic

Authored by joechrisellis on Oct 26 2020, 4:36 AM.

Details

Summary

We do not need to use the implicit cast here. We can instead can rely on
a comparison between two TypeSize objects instead. This algorithm will
work fine with scalable vectors.

Diff Detail

Event Timeline

joechrisellis created this revision.Oct 26 2020, 4:36 AM
joechrisellis requested review of this revision.Oct 26 2020, 4:36 AM
This revision is now accepted and ready to land.Oct 26 2020, 8:04 AM
This revision was landed with ongoing or failed builds.Oct 26 2020, 10:41 AM
This revision was automatically updated to reflect the committed changes.