[all-commits] [llvm/llvm-project] 991a62: [TargetLowering] Remove weird use of MVT::isVoid i...
Craig Topper via All-commits
all-commits at lists.llvm.org
Wed Jul 31 21:53:52 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 991a6215a9ccd99eb91d2b2d46b58c2fd648c263
https://github.com/llvm/llvm-project/commit/991a6215a9ccd99eb91d2b2d46b58c2fd648c263
Author: Craig Topper <craig.topper at sifive.com>
Date: 2024-07-31 (Wed, 31 Jul 2024)
Changed paths:
M llvm/include/llvm/CodeGen/TargetLowering.h
Log Message:
-----------
[TargetLowering] Remove weird use of MVT::isVoid in an assert. (#101436)
At the time this was written there were no vector types in MVT. The
order was:
-scalar integer types
-scalar FP types
-isVoid
I believe this isVoid check was to catch walking off the end of the
scalar FP types. While the isInteger()==isInteger caught walking off the
end of scalar integer types.
These days we have:
-scalar integer types
-scalar FP types
-fixed vector integer types
-fixed vector FP types
-scalable vector integer types
-scalable vector FP types.
-Glue
-isVoid
So checking isVoid doesn't detect what it used to. I've changed it to
check isFloatingPoint() == isFloatingPoint() instead.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list