llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[NVPTX] Failure to lower `v2i8`

Open justinfargnoli opened this issue 2 years ago • 3 comments

Lowering v2i8 as a return type is causing a compiler crash.

Reproducer on compiler explorer: https://godbolt.org/z/znxzW9Eqj

Originally posted by @Artem-B in https://github.com/llvm/llvm-project/pull/104524#discussion_r1722353170

justinfargnoli avatar Aug 19 '24 21:08 justinfargnoli

Reproducer:

define <2 x i8> @byte2() {
  ret <2 x i8> zeroinitializer
}

justinfargnoli avatar Aug 19 '24 21:08 justinfargnoli

This is caused by SelectionDAG wanting to lower v2i8 as 1 v2i16 value while ComputePTXValueVTs wants to lower it to 2 i8 values.

justinfargnoli avatar Aug 28 '24 22:08 justinfargnoli

@manasij7479 is going to look into this.

justinfargnoli avatar Aug 30 '24 16:08 justinfargnoli