[PATCH] D129641: [DAG] PromoteIntRes_BUILD_VECTOR - extend constant boolean vectors according to target BooleanContents

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 13 07:17:47 PDT 2022


RKSimon added inline comments.


================
Comment at: llvm/test/CodeGen/PowerPC/vec-select.ll:56
 
-; Not valid to emit XXSEL for this illegal type.
+; vXi1 constants are sign-extended to preserve XXSEL pattern.
 define dso_local <4 x i1> @test5(<4 x i1> %a, <4 x i1> %b, <4 x i1> %c) {
----------------
@nemanjai Please can you confirm if you intended to avoid the XXSEL pattern because <i1 -1, i1 -1, i1 -1, i1 -1> would extend to <i32 1, i32 1, i32 1, i32 1> or some other reason?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129641



More information about the llvm-commits mailing list