Commit a1daa7d0 authored by Reid Kleckner's avatar Reid Kleckner
Browse files

Avoid std::tie in TypeSize.h

std::tie isn't saving much here, just use == && ==. No numbers to
support this, but std::tie is one of the most expensive instantiations.
parent 4b606b4a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@
#define LLVM_SUPPORT_TYPESIZE_H

#include <cassert>
#include <tuple>

namespace llvm {

@@ -70,8 +69,7 @@ public:
  // not guaranteed to be the same size at runtime, so they are never
  // considered to be equal.
  friend bool operator==(const TypeSize &LHS, const TypeSize &RHS) {
    return std::tie(LHS.MinSize, LHS.IsScalable) ==
           std::tie(RHS.MinSize, RHS.IsScalable);
    return LHS.MinSize == RHS.MinSize && LHS.IsScalable == RHS.IsScalable;
  }

  friend bool operator!=(const TypeSize &LHS, const TypeSize &RHS) {