Skip to content

Commit b47da83

Browse files
committed
use V2F32toI64 for i64 build_pair (i32 bitcast f32, i32 bitcast f32)
Add a dag pattern to lower: i64 = build_pair (i32 = bitcast (f32 A), i32 = bitcast (f32 B)) -> i64 = V2F32toI64 A, B
1 parent c968017 commit b47da83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Target/NVPTX/NVPTXInstrInfo.td

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3441,6 +3441,9 @@ def : Pat<(v2i16 (build_vector i16:$a, i16:$b)),
34413441
(V2I16toI32 $a, $b)>;
34423442
def : Pat<(v2f32 (build_vector f32:$a, f32:$b)),
34433443
(V2F32toI64 $a, $b)>;
3444+
def : Pat<(i64 (build_pair (i32 (bitconvert f32:$a)),
3445+
(i32 (bitconvert f32:$b)))),
3446+
(V2F32toI64 $a, $b)>;
34443447
def : Pat<(i64 (build_pair i32:$a, i32:$b)),
34453448
(V2I32toI64 $a, $b)>;
34463449

0 commit comments

Comments
 (0)