Skip to content

Commit

Permalink
LLVM patch: Fix crash when FREEZE a half(f16) type on loongarch
Browse files Browse the repository at this point in the history
upstream patch: llvm/llvm-project#107791
  • Loading branch information
andrewrk committed Sep 18, 2024
1 parent 46a7832 commit 37b6c3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ For other versions, check the git tags of this repository.
* LLD: Added additional include directory to Zig's libunwind.
* LLD: Respect `LLD_BUILD_TOOLS=OFF`
* zlib: Delete the ability to build a shared library.
* [LLVM: Fix crash when FREEZE a half(f16) type on loongarch](https://github.com/llvm/llvm-project/pull/107791)

## Host System Dependencies

Expand Down
2 changes: 2 additions & 0 deletions llvm/lib/Target/LoongArch/LoongArchISelLowering.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ class LoongArchTargetLowering : public TargetLowering {
bool isEligibleForTailCallOptimization(
CCState &CCInfo, CallLoweringInfo &CLI, MachineFunction &MF,
const SmallVectorImpl<CCValAssign> &ArgLocs) const;

bool softPromoteHalfType() const override { return true; }
};

} // end namespace llvm
Expand Down

0 comments on commit 37b6c3d

Please sign in to comment.