HomePhabricator

[SROA] Avoid splitting loads/stores with irregular type

Authored by LemonBoy on Jun 9 2021, 2:47 AM.

Description

[SROA] Avoid splitting loads/stores with irregular type

Upon encountering loads/stores on types whose size is not a multiple of 8 bits the SROA pass would either trip an assertion or use logic that was not meant to work with such irregularly-sized types.

Reviewed By: aeubanks

Differential Revision: https://reviews.llvm.org/D99435