Skip to content

Commit 151f58d

Browse files
committed
GISEL: Move the node equiv to the generic place
1 parent 5e030e0 commit 151f58d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

llvm/include/llvm/Target/GlobalISel/SelectionDAGCompat.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ def : GINodeEquiv<G_FFLOOR, ffloor>;
161161
def : GINodeEquiv<G_FRINT, frint>;
162162
def : GINodeEquiv<G_FNEARBYINT, fnearbyint>;
163163
def : GINodeEquiv<G_INTRINSIC_TRUNC, ftrunc>;
164+
def : GINodeEquiv<G_INTRINSIC_FPTRUNC_ROUND, fptrunc_round>;
164165
def : GINodeEquiv<G_INTRINSIC_ROUND, fround>;
165166
def : GINodeEquiv<G_INTRINSIC_ROUNDEVEN, froundeven>;
166167
def : GINodeEquiv<G_INTRINSIC_LRINT, lrint>;

llvm/lib/Target/AMDGPU/AMDGPUGISel.td

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,6 @@ def : GINodeEquiv<G_AMDGPU_S_BUFFER_LOAD_UBYTE, SIsbuffer_load_ubyte>;
297297
def : GINodeEquiv<G_AMDGPU_S_BUFFER_LOAD_SSHORT, SIsbuffer_load_short>;
298298
def : GINodeEquiv<G_AMDGPU_S_BUFFER_LOAD_USHORT, SIsbuffer_load_ushort>;
299299

300-
def : GINodeEquiv<G_INTRINSIC_FPTRUNC_ROUND, fptrunc_round>;
301-
302300
class GISelSop2Pat <
303301
SDPatternOperator node,
304302
Instruction inst,

0 commit comments

Comments
 (0)