[PATCH] Don't use getSetCCResultType for creating a vselect

Matt Arsenault Matthew.Arsenault at amd.com
Mon Sep 9 17:18:18 PDT 2013


  Attach right version of patch

Hi nadav,

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

CHANGE SINCE LAST DIFF
  http://llvm-reviews.chandlerc.com/D1631?vs=4147&id=4148#toc

Files:
  lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp

Index: lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
===================================================================
--- lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
+++ lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
@@ -599,8 +599,7 @@
     return DAG.UnrollVectorOp(Op.getNode());
 
   // Generate a mask operand.
-  EVT MaskTy = TLI.getSetCCResultType(*DAG.getContext(), VT);
-  assert(MaskTy.isVector() && "Invalid CC type");
+  EVT MaskTy = VT.changeVectorElementTypeToInteger();
   assert(MaskTy.getSizeInBits() == Op1.getValueType().getSizeInBits()
          && "Invalid mask size");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1631.2.patch
Type: text/x-patch
Size: 600 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130909/76abbf42/attachment.bin>


More information about the llvm-commits mailing list