Skip to content

Commit 8a7d78f

Browse files
Initial commit
1 parent 230f332 commit 8a7d78f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/CodeGen/TargetLowering.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3024,7 +3024,7 @@ class TargetLoweringBase {
30243024
/// by referencing its sub-register AX.
30253025
/// Targets must return false when FromTy <= ToTy.
30263026
virtual bool isTruncateFree(Type *FromTy, Type *ToTy) const {
3027-
return false;
3027+
return isTruncateFree(EVT::getEVT(FromTy), EVT::getEVT(ToTy));
30283028
}
30293029

30303030
/// Return true if a truncation from FromTy to ToTy is permitted when deciding

0 commit comments

Comments
 (0)