[llvm-commits] [llvm] r142648 - in /llvm/trunk: lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp lib/CodeGen/SelectionDAG/LegalizeTypes.h lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp test/CodeGen/X86/2011-10-21-widen-cmp.ll

Duncan Sands baldrick at free.fr
Fri Oct 21 04:51:54 PDT 2011


Hi Nadav,

> +  // Only some of the compared elements are legal.

what is this comment trying to say?

> +  // Convert the result mask to the correct kind.
> +  return DAG.getAnyExtOrTrunc(CC, dl, N->getValueType(0));

The extension should be done according to TLI.getBooleanContents.

Ciao, Duncan.



More information about the llvm-commits mailing list