[llvm] [GISel] Legalize bitreverse with types smaller than 8 bits (PR #92998)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Wed May 22 05:04:25 PDT 2024


dtcxzyw wrote:

> > > Test the vector cases too?
> > 
> > 
> > IRTranslator haven't supported vector intrinsics yet :( See https://godbolt.org/z/xTfGMfEr3
> 
> Maybe something goes wrong for scalable vectors, but vector intrinsics work?

It works. But we don't support legalizing G_OR for fixed vector types :(

> LLVM ERROR: unable to legalize instruction: %55:_(<8 x s2>) = G_OR %48:_, %54:_ (in function: test_v8i2)

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


More information about the llvm-commits mailing list