Skip to content

Commit 8e36120

Browse files
committed
LLVM patch: Fix crash when FREEZE a half(f16) type on loongarch
upstream patch: llvm/llvm-project#107791
1 parent f1b9ac4 commit 8e36120

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/LoongArch/LoongArchISelLowering.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ class LoongArchTargetLowering : public TargetLowering {
332332
bool isEligibleForTailCallOptimization(
333333
CCState &CCInfo, CallLoweringInfo &CLI, MachineFunction &MF,
334334
const SmallVectorImpl<CCValAssign> &ArgLocs) const;
335+
336+
bool softPromoteHalfType() const override { return true; }
335337
};
336338

337339
} // end namespace llvm

0 commit comments

Comments
 (0)