Please take a look,
Chad
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Transforms/InstCombine/InstCombineCompares.cpp | ||
---|---|---|
2103–2106 ↗ | (On Diff #56767) | What if C1 is -1? Won't this divide by zero? |
Comment Actions
LGTM with nits.
lib/Transforms/InstCombine/InstCombineCompares.cpp | ||
---|---|---|
2103–2106 ↗ | (On Diff #56767) | 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. |