mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
fix corner case in ConstantRange::intersectWith().
this fixes the missed optimization I was seeing in the CorrelatedValuePropagation pass git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157032 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -288,7 +288,7 @@ ConstantRange ConstantRange::intersectWith(const ConstantRange &CR) const {
|
||||
if (CR.Upper.ult(Upper))
|
||||
return CR;
|
||||
|
||||
if (CR.Upper.ult(Lower))
|
||||
if (CR.Upper.ule(Lower))
|
||||
return ConstantRange(CR.Lower, Upper);
|
||||
|
||||
if (getSetSize().ult(CR.getSetSize()))
|
||||
|
Reference in New Issue
Block a user