[PATCH] D140365: [SelectionDAG] Correctly widen bitcast of scalar to vector for big endian

Nemanja Ivanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 6 07:42:06 PST 2023


nemanjai updated this revision to Diff 486880.
nemanjai added a comment.

The legalization to a vector of N elements of original type is fine for both little and big endian targets. Eliminate the branch based on target endianness.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140365/new/

https://reviews.llvm.org/D140365

Files:
  llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
  llvm/test/CodeGen/PowerPC/vec_conv_i8_to_fp32_elts.ll
  llvm/test/CodeGen/PowerPC/vec_conv_i8_to_fp64_elts.ll
  llvm/test/CodeGen/PowerPC/widen-vec-correctly-be.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140365.486880.patch
Type: text/x-patch
Size: 7200 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230106/7f57b8b4/attachment.bin>


More information about the llvm-commits mailing list