Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Please can you split up your changes?
https://llvm.org/docs/DeveloperPolicy.html#code-reviews
Split your patch into multiple smaller patches that build on each other. The smaller your patch, the higher the probability that somebody will take a quick look at it.
I would very much prefer to quickly look through 3 small differentials here rather than one medium..
llvm/lib/Analysis/ValueTracking.cpp | ||
---|---|---|
4087–4091 ↗ | (On Diff #194198) | So the only thing happening here is that RangeType is now being passed, right? + ConstantRange::PreferredRangeType RangeType = + ForSigned ? ConstantRange::Signed : ConstantRange::Unsigned; - return CR1.intersectWith(CR2); + return CR1.intersectWith(CR2, RangeType); |
4136–4159 ↗ | (On Diff #194198) | This looks like it should be a new differential, after the this one. |
4195–4198 ↗ | (On Diff #194198) | And one more new differential |
There are a few additional test changes due to the min/max handling in computeConstantRange() that has landed in the meantime.
llvm/lib/Analysis/ValueTracking.cpp | ||
---|---|---|
4087–4091 ↗ | (On Diff #194198) | Done in rL357968. |
4136–4159 ↗ | (On Diff #194198) | This change is needed because the LHSKnown variable no longer exists, so it can't come after. There's no reason it can't come before though, so done in rL357969. |
4195–4198 ↗ | (On Diff #194198) | Done, I've reduced this to just the signed add case and will submit a followup for signed sub. |
llvm/lib/Analysis/ValueTracking.cpp | ||
---|---|---|
4136–4159 ↗ | (On Diff #194198) | Sure. But i was talking about the entire block of code i highlighted with a comment. |
llvm/lib/Analysis/ValueTracking.cpp | ||
---|---|---|
4136–4159 ↗ | (On Diff #194198) | Ooooh, I didn't realize that you can highlight a range of code and assumed your comment is about the change directly above. But yes, just the computeConstantRangeIncludingKnownBits() change doesn't result in test changes (it it not strictly speaking NFC, but it's likely not possible to actually trigger a difference without using the function in a signed context). |