[PATCH] D112502: [PowerPC] expand SCEV with correct type

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 25 18:38:58 PDT 2021


shchenz created this revision.
shchenz added reviewers: jsji, PowerPC.
Herald added subscribers: javed.absar, kbarton, hiraditya, nemanjai.
shchenz requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This is to fix an internal issue caused by D108750 <https://reviews.llvm.org/D108750>

We get assertion on AIX 32 target for the SCEV expansion.

  lib/Transforms/Utils/ScalarEvolutionExpander.cpp:1847: llvm::Value *llvm::SCEVExpander::expandCodeForImpl(const llvm::SCEV *, llvm::Type *, bool): Assertion `SE.getTypeSizeInBits(Ty) == SE.getTypeSizeInBits(SH->getType()) && "non-trivial casts should be done with the SCEVs directly!"' failed.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112502

Files:
  llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
  llvm/test/CodeGen/PowerPC/common-chain-aix32.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112502.382163.patch
Type: text/x-patch
Size: 6300 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211026/a1822377/attachment.bin>


More information about the llvm-commits mailing list