[llvm] [VectorCombine] Generalize foldBitOpOfBitcasts to support more cast operations (PR #148350)

Rahul Yadav via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 21 01:39:04 PDT 2025


================
@@ -0,0 +1,263 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt < %s -passes=vector-combine -S -mtriple=x86_64-- | FileCheck %s
+
+; Test bitwise operations with bitcast
+define <4 x i32> @and_bitcast_v4f32_to_v4i32(<4 x float> %a, <4 x float> %b) {
----------------
rhyadav wrote:

@RKSimon ok will do, pls let know of any other changes/feedback before i push the changes :)

https://github.com/llvm/llvm-project/pull/148350


More information about the llvm-commits mailing list