[PATCH] D26420: Encode duplication factor from loop vectorization and loop unrolling to discriminator.

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 15 15:14:01 PST 2016


aprantl added inline comments.


================
Comment at: include/llvm/IR/DebugInfoMetadata.h:1649-1650
+  else
+    return cloneWithDiscriminator(((DF * getDuplicationFactor()) << 7) |
+                                  (getDiscriminator() & 0x7f));
+}
----------------
  #  This magic formula needs to be documented somewhere.
  #  Is there anything preventing / detecting potential collisions here?


https://reviews.llvm.org/D26420





More information about the llvm-commits mailing list