Issue 146037
Summary [VectorCombine] Generalise foldBitOpOfBitcasts into foldBitOpOfCastops
Labels good first issue, llvm::vectorcombine
Assignees
Reporter RKSimon
    foldBitOpOfBitcasts allows us to fold bitlogic(bitcast(x),bitcast(y)) -> bitcast(bitlogic(x,y)) if x and y are the same type and it doesn't cost anymore.

We can generalise this to work with other matching cast ops (trunc/sext/zext) - similar to how foldShuffleOfCastops works (although much simpler as there's no shuffle mask manipulation to do).
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to