Fixes PR 31344
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Looking really nice! Added a few nits
lib/Target/AVR/AVRExpandPseudoInsts.cpp | ||
---|---|---|
77 ↗ | (On Diff #82524) | As this method doesn't actually do any expansion and only returns a boolean, you should rename it to something like isLogicImmOpRedundant. Also, you should add a const qualifier to the method. |
225 ↗ | (On Diff #82524) | This temporary variable is unnecessary, plus it would be clearer if it looked if (expandLogicImmNeeded(..) { } |
Thank you, for the review.
- Renamed AVRExpandPseudo::expandLogicImmNeeded() to AVRExpandPseudo::isLogicImmOpRedundant()
- AVRExpandPseudo::isLogicImmOpRedundant() is now const qualified.
- Eliminated the temporary, so that the check for redundancy appears in the if's conditional clause. PS: The sense of the check is now inverted relative to the prior version.
Thank you! What are the next steps to follow? How does it get into the mainline trunk sources? Do we change state to 'RESOLVED' once it does?
Somebody with commit access has to commit your change (with attribution) and Phabricator will close the review afterwards. PR 31344 needs to be closed manually afterwards.
If you do not have commit access it is best to ask somebody to commit your changes.
Thank you, for helping me understand the process. Perhaps Dylan has commit access; let's wait to hear back from him.