[PATCH] D125951: [InstCombine] bitcast (extractelement <1 x elt>, dest) -> bitcast(<1 x elt>, dest)

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 26 09:07:58 PDT 2022


spatel requested changes to this revision.
spatel added a comment.
This revision now requires changes to proceed.

Please pre-commit the baseline tests.

But we also need tests with scalable vectors - the patch will crash on this example:

  define <2 x i32> @bitcast_extelt5_scalable(<vscale x 1 x i64> %A) {
    %ext = extractelement <vscale x 1 x i64> %A, i32 0
    %bc = bitcast i64 %ext to <2 x i32>
    ret <2 x i32> %bc
  }


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125951/new/

https://reviews.llvm.org/D125951



More information about the llvm-commits mailing list