================
@@ -3068,6 +3070,13 @@ Instruction 
*InstCombinerImpl::visitShuffleVectorInst(ShuffleVectorInst &SVI) {
     return &SVI;
   }
 
+  // shuffle ZeroVec, x, mask --> shuffle x, ZeroVec, mask'
+  if (match(LHS, m_CombineOr(m_Zero(), m_AnyZeroFP())) &&
+      !match(RHS, m_CombineOr(m_Zero(), m_AnyZeroFP()))) {
----------------
kieroxide wrote:

Done

https://github.com/llvm/llvm-project/pull/237258
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to