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

Daniel Sanders daniel.sanders at imgtec.com
Thu Oct 24 03:21:58 PDT 2013


  Possible implementation of the guard for legalizing the constants too early.

  Adds a NewNodesMustHaveLegalTypes member to SelectionDAG which when true
  (i.e. after type legalization), ensures that getConstant() produces
  legally typed vector constants when the element type is illegal and needs
  expanding.

Hi bkramer,

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

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

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.3.patch
Type: text/x-patch
Size: 16013 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131024/b150a1ad/attachment.bin>


More information about the llvm-commits mailing list