[PATCH] Fix illegal DAG produced by SelectionDAG::getConstant() for v2i64 type

Daniel Sanders daniel.sanders at imgtec.com
Wed Nov 6 07:00:49 PST 2013


  Fix big-endian MSA cases. The correct thing to do to handle these cases is nothing.

  Or more accurately, reverse the order of the vector elements, not the endianness
  of the elements themselves. This is a no-op because getConstant() returns a
  splatted BUILD_VECTOR.

Hi bkramer,

http://llvm-reviews.chandlerc.com/D1973

CHANGE SINCE LAST DIFF
  http://llvm-reviews.chandlerc.com/D1973?vs=5117&id=5380#toc

BRANCH
  msa/bugfix-getconstant2

ARCANIST PROJECT
  llvm

Files:
  include/llvm/CodeGen/SelectionDAG.h
  lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
  lib/Target/Mips/MipsSEISelLowering.cpp
  test/CodeGen/Mips/msa/bit.ll
  test/CodeGen/Mips/msa/elm_shift_slide.ll
  test/CodeGen/Mips/msa/i5-a.ll
  test/CodeGen/Mips/msa/i5-c.ll
  test/CodeGen/Mips/msa/i5-m.ll
  test/CodeGen/Mips/msa/i5-s.ll
  test/CodeGen/Mips/msa/llvm-stress-s1704963983.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1973.4.patch
Type: text/x-patch
Size: 17485 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131106/f182d4d3/attachment.bin>


More information about the llvm-commits mailing list