This is the second part of fixing bug 24848 https://llvm.org/bugs/show_bug.cgi?id=24848.
If both operands of a comparison have range metadata, they should be used to constant fold the comparison.
Differential D13177
[Bug 24848] Use range metadata to constant fold comparisons between two values • chenli on Sep 25 2015, 1:17 PM. Authored by
Details This is the second part of fixing bug 24848 https://llvm.org/bugs/show_bug.cgi?id=24848. If both operands of a comparison have range metadata, they should be used to constant fold the comparison.
Diff Detail Event TimelineComment Actions Minor request below, otherwise, LGTM.
|
Move this below the check for Satisfied_CR.contains. No need to construct an object we'll never use.