[llvm] Initial commit (PR #138776)
Justin Fargnoli via llvm-commits
llvm-commits at lists.llvm.org
Tue May 6 15:57:07 PDT 2025
https://github.com/justinfargnoli created https://github.com/llvm/llvm-project/pull/138776
None
>From 8a7d78f2e03d3d352cddee79616b17bcaac129eb Mon Sep 17 00:00:00 2001
From: Justin Fargnoli <jfargnoli at nvidia.com>
Date: Tue, 6 May 2025 22:56:42 +0000
Subject: [PATCH] Initial commit
---
llvm/include/llvm/CodeGen/TargetLowering.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/include/llvm/CodeGen/TargetLowering.h b/llvm/include/llvm/CodeGen/TargetLowering.h
index abe261728a3e6..30e6027329074 100644
--- a/llvm/include/llvm/CodeGen/TargetLowering.h
+++ b/llvm/include/llvm/CodeGen/TargetLowering.h
@@ -3024,7 +3024,7 @@ class TargetLoweringBase {
/// by referencing its sub-register AX.
/// Targets must return false when FromTy <= ToTy.
virtual bool isTruncateFree(Type *FromTy, Type *ToTy) const {
- return false;
+ return isTruncateFree(EVT::getEVT(FromTy), EVT::getEVT(ToTy));
}
/// Return true if a truncation from FromTy to ToTy is permitted when deciding
More information about the llvm-commits
mailing list