[Bugfix] Fix non-divisible nested modulo simplification - #3065
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe vendored TVM revision was updated. Regression coverage was added for nested ChangesNested floormod correctness
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized fix preserves nested modulo behavior for wrapping, non-divisible cases while retaining valid simplifications elsewhere, with regression coverage and passing test suites. No actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 1 files. (1 skipped: 1 unsupported.) ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
👋 Hi! Thank you for contributing to the TileLang project. Please remember to run We appreciate you taking this step! Our team will review your contribution, and we look forward to your awesome work! 🚀 |
|
Thanks! The TVM-side fix has been merged via tile-ai/tvm#65. This PR now updates |
Summary
This prevents
(x % 64) % 7from being incorrectly rewritten asx % 7duringFlattenBuffer.Depends on tile-ai/tvm#64.
Fixes #2955.
Testing
(threadIdx.x & 63) % 7Summary
(x % 64) % 7from simplifying incorrectly tox % 7.C++ style / lint notes
docs/developer_guide/cpp_style.md.