[llvm] [llvm][TypeSize] Consider TypeSize of '0' to be fixed/scalable-agnostic. (PR #72994)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 22 04:52:22 PST 2023
================
@@ -97,17 +97,29 @@ template <typename LeafTy, typename ValueTy> class FixedOrScalableQuantity {
constexpr FixedOrScalableQuantity() = default;
constexpr FixedOrScalableQuantity(ScalarTy Quantity, bool Scalable)
- : Quantity(Quantity), Scalable(Scalable) {}
+ : Quantity(Quantity), Scalable(Quantity ? Scalable : false) {}
----------------
sdesmalen-arm wrote:
Thanks, I've removed the canonicalisation now.
https://github.com/llvm/llvm-project/pull/72994
More information about the llvm-commits
mailing list