[PATCH] Prevent binary-tree deterioration in sparse trees.
Hans Wennborg
hans at chromium.org
Tue Jan 20 11:34:37 PST 2015
Still lgtm.
================
Comment at: lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:2434
@@ -2432,2 +2433,3 @@
volatile double LDensity =
- LSize.roundToDouble() / (LEnd - First + 1ULL).roundToDouble();
+ LSize.ult(TLI.getMinimumJumpTableEntries())
+ ? 0.0
----------------
Maybe add a comment about why we're doing this check?
http://reviews.llvm.org/D7070
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list