Allow vectorization of division by uniform power of 2.
[oota-llvm.git] / lib / Target / ARM / ARMInstrNEON.td
index ca0b05d384283a40ad36ced4501c775aac131a18..a276b92b2977f83cc5eb29bca2cf74c67ab1fa3d 100644 (file)
@@ -5499,6 +5499,9 @@ def VSETLNi32 : NVSetLane<{1,1,1,0,0,0,?,0}, 0b1011, 0b00, (outs DPR:$V),
                           [(set DPR:$V, (insertelt (v2i32 DPR:$src1),
                                            GPR:$R, imm:$lane))]> {
   let Inst{21} = lane{0};
+  // This instruction is equivalent as
+  // $V = INSERT_SUBREG $src1, $R, translateImmToSubIdx($imm)
+  let isInsertSubreg = 1;
 }
 }
 def : Pat<(vector_insert (v16i8 QPR:$src1), GPR:$src2, imm:$lane),