We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 230f332 commit 8a7d78fCopy full SHA for 8a7d78f
llvm/include/llvm/CodeGen/TargetLowering.h
@@ -3024,7 +3024,7 @@ class TargetLoweringBase {
3024
/// by referencing its sub-register AX.
3025
/// Targets must return false when FromTy <= ToTy.
3026
virtual bool isTruncateFree(Type *FromTy, Type *ToTy) const {
3027
- return false;
+ return isTruncateFree(EVT::getEVT(FromTy), EVT::getEVT(ToTy));
3028
}
3029
3030
/// Return true if a truncation from FromTy to ToTy is permitted when deciding
0 commit comments