[PATCH] D25188: Fix nondeterministic output in local stack slot alloc pass

Mandeep Singh Grang via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 18 11:41:00 PDT 2016


mgrang added inline comments.


================
Comment at: lib/CodeGen/LocalStackSlotAllocation.cpp:66
+        return true;
+      return Order < RHS.Order;
     }
----------------
Can we change this into:

  bool operator<(const FrameRef &RHS) const {
    return std::tie(LocalOffset, FrameIdx, Order) <
           std::tie(RHS.LocalOffset, RHS.FrameIdx, RHS.Order);
  }


https://reviews.llvm.org/D25188





More information about the llvm-commits mailing list