Please take a look,
Chad
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Transforms/InstCombine/InstCombineCompares.cpp | ||
---|---|---|
2103–2106 | What if C1 is -1? Won't this divide by zero? |
Comment Actions
LGTM with nits.
lib/Transforms/InstCombine/InstCombineCompares.cpp | ||
---|---|---|
2103–2106 | Ah, you have a test for this case, it is handled by InstSimplify. Please add an assertion for this like you do for C1 != 0 below. |
What if C1 is -1? Won't this divide by zero?