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

George Burgess IV via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 21 12:04:39 PST 2015


george.burgess.iv added a subscriber: george.burgess.iv.
george.burgess.iv added a comment.

Thanks for this! Just one tiny nit.


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


http://reviews.llvm.org/D15692





More information about the llvm-commits mailing list