[PATCH] D15692: [X86] Reduce complexity of the LEA optimization pass

Andrey Turetskiy via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 22 03:22:44 PST 2015


aturetsk added a comment.

Hello George,
Thanks for the review.


================
Comment at: lib/Target/X86/X86OptimizeLEAs.cpp:93
@@ -88,1 +92,3 @@
 
+  std::unordered_map<const MachineInstr *, unsigned> InstrPos;
+
----------------
george.burgess.iv wrote:
> Is there a reason that we can't use `DenseMap` here instead?
Fixed.


http://reviews.llvm.org/D15692





More information about the llvm-commits mailing list