[PATCH] D105094: [PowerPC] Fix i64 to vector lowering on big endian

Qiu Chaofan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 29 03:00:30 PDT 2021


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

Lowering for scalar to vector would skip if current subtarget is big endian and the scalar is larger or equal than 64 bits. However there's some issue in implementation that `SToVRHS` may refer to `SToVLHS`'s scalar size if `SToVLHS` is present, which leads to some crash.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105094

Files:
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/test/CodeGen/PowerPC/p8-scalar_vector_conversions.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105094.355161.patch
Type: text/x-patch
Size: 4543 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210629/92009aaf/attachment.bin>


More information about the llvm-commits mailing list