[PATCH] D123652: Add use condition for combine SetCCMOVMSK

LuoYuanke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 19 05:55:51 PDT 2022


LuoYuanke added a comment.

Try this test case?

  define i32 @test_v32i8_muti_uses(<32 x i8> %x, <32 x i8>%y, i32 %z) {
    %a = icmp eq <32 x i8> %x, %y
    %b = bitcast <32 x i1> %a to i32
    %c = icmp eq i32 %b, -1
  
    %res = select i1 %c, i32 16, i32 %b
    ret i32 %res
  }


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

https://reviews.llvm.org/D123652



More information about the llvm-commits mailing list