[PATCH] D19325: DAGCombine: (shl (or x, c1), c2) -> (or (shl x, c2), c1 << c2)

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 12 06:12:23 PDT 2017


tstellar added inline comments.


================
Comment at: test/CodeGen/AMDGPU/fneg-fabs.f16.ll:91-95
+; CI: s_mov_b32 [[MASK:s[0-9]+]], 0x80008000
+; CI: v_lshlrev_b32_e32 [[SHL0:v[0-9]+]]
+; CI: v_or_b32_e32 v{{[0-9]+}}, [[SHL0]],
+; CI: v_lshlrev_b32_e32 [[SHL1:v[0-9]+]]
+; CI: v_or_b32_e32 v{{[0-9]+}}, [[SHL1]],
----------------
Does this test generate extra shl instructions now, or did it generate those before the patch and there just weren't any check lines for it?


Repository:
  rL LLVM

https://reviews.llvm.org/D19325





More information about the llvm-commits mailing list