Skip to content

Commit 37b6c3d

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

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ For other versions, check the git tags of this repository.
2424
* LLD: Added additional include directory to Zig's libunwind.
2525
* LLD: Respect `LLD_BUILD_TOOLS=OFF`
2626
* zlib: Delete the ability to build a shared library.
27+
* [LLVM: Fix crash when FREEZE a half(f16) type on loongarch](https://github.com/llvm/llvm-project/pull/107791)
2728

2829
## Host System Dependencies
2930

llvm/lib/Target/LoongArch/LoongArchISelLowering.h

+2
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)