[PATCH] D11413: X86: Fixed assertion failure in 32-bit mode

Elena Demikhovsky elena.demikhovsky at intel.com
Wed Jul 22 23:45:17 PDT 2015

delena added inline comments.

Comment at: lib/Target/X86/X86ISelLowering.cpp:7385
@@ -7385,1 +7384,3 @@
+                                               DAG);
+  if (V2S && DAG.getTargetLoweringInfo().isTypeLegal(V2S.getValueType())) {
     // We need to zext the scalar if it is smaller than an i32.
mkuper wrote:
> This seems a bit odd - if getScalarValueForVectorElement() returned a non-null value, there was already a SCALAR_TO_VECTOR or a BUILD_VECTOR there. So why would forming a SCALAR_TO_VECTOR be wrong?
> (I'm not saying it's not, I just don't understand why.)
The pattern here is  " BITCAST(v2f64 (SCALAR_TO_VECTOR (f64 Val))) to v2i64."
So, the original "scalar_to_vector" was legal.



More information about the llvm-commits mailing list