summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/pr35402.ll
Commit message (Collapse)AuthorAgeFilesLines
* [PPC] Avoid non-simple MVT in STBRX optimizationGuozhi Wei2018-03-151-0/+18
PR35402 triggered this case. It bswap and stores a 48bit value, current STBRX optimization transforms it into STBRX. Unfortunately 48bit is not a simple MVT, there is no PPC instruction to support it, and it can't be automatically expanded by llvm, so caused a crash. This patch detects the non-simple MVT and returns early. Differential Revision: https://reviews.llvm.org/D44500 llvm-svn: 327651
OpenPOWER on IntegriCloud