Skip to content

Commit 3f3814a

Browse files
sgundapaCopilot
andauthored
Update llvm/lib/Target/Hexagon/HexagonPatterns.td
Co-authored-by: Copilot <[email protected]>
1 parent 8e4e94d commit 3f3814a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

llvm/lib/Target/Hexagon/HexagonPatterns.td

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3436,10 +3436,12 @@ let AddedComplexity = 100 in {
34363436

34373437
multiclass FloatClass<SDPatternOperator IntOp, InstHexagon MI,
34383438
PatFrag RegPred> {
3439-
def: Pat<(i1 (seteq (IntOp RegPred:$Rs, u5_0ImmPred_timm:$u5), 0)),
3440-
(C2_not (MI RegPred:$Rs, u5_0ImmPred_timm:$u5))>;
3441-
def: Pat<(i1 (setne (IntOp RegPred:$Rs, u5_0ImmPred_timm:$u5), 0)),
3442-
(MI RegPred:$Rs, u5_0ImmPred_timm:$u5)>;
3439+
let AddedComplexity = 100 in {
3440+
def: Pat<(i1 (seteq (IntOp RegPred:$Rs, u5_0ImmPred_timm:$u5), 0)),
3441+
(C2_not (MI RegPred:$Rs, u5_0ImmPred_timm:$u5))>;
3442+
def: Pat<(i1 (setne (IntOp RegPred:$Rs, u5_0ImmPred_timm:$u5), 0)),
3443+
(MI RegPred:$Rs, u5_0ImmPred_timm:$u5)>;
3444+
}
34433445
}
34443446

34453447
defm : FloatClass<int_hexagon_F2_sfclass, F2_sfclass, F32>;

0 commit comments

Comments
 (0)