Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
include/llvm/Analysis/TargetTransformInfo.h | ||
---|---|---|
526 ↗ | (On Diff #92181) | Maybe \return instead of \brief Return |
527 ↗ | (On Diff #92181) | A const & would probably be more appropriate. |
lib/CodeGen/CodeGenPrepare.cpp | ||
1096 ↗ | (On Diff #92181) | CI is not valid anymore at this point. |
2824 ↗ | (On Diff #92181) | Add a comment for the new arg |
4526 ↗ | (On Diff #92181) | Why is the example removed here? |
4621 ↗ | (On Diff #92181) | Add a comment explaining what this method does. |
4757 ↗ | (On Diff #92181) | The part mentioning 64 bits is, I believe, not in sync with the code. |
4760 ↗ | (On Diff #92181) | I wonder how much of this logic applies to other target. What I am saying is that this may be beneficial for AArch64, but is it true for X86 for instance? |
4798 ↗ | (On Diff #92181) | What purpose does this serve? |
4802 ↗ | (On Diff #92181) | This should only be in the else block, right? Indeed, if canFormExtLd returns true, the changes are committed and there isn't anything else added to the transaction AFAICT. Thus this call does nothing. |
4808 ↗ | (On Diff #92181) | For this condition, same question, how does this apply to something that is not AArch64? |
lib/Target/AArch64/AArch64TargetTransformInfo.cpp | ||
633 ↗ | (On Diff #92181) | Add comments |
Addressed Quentin's comments. Please take a look and let me know any comments.
lib/CodeGen/CodeGenPrepare.cpp | ||
---|---|---|
1096 ↗ | (On Diff #92181) | No need to add CI in RemovedExtInsts because none of extension removed here is considered in optimizeExt(). |
4757 ↗ | (On Diff #92181) | Yes, I move this comment in AArch64TTIImpl::shouldConsiderAddressTypePromotion(). |
4760 ↗ | (On Diff #92181) | I believe this should target specific. So I move this into AArch64TTIImpl by adding another parameter (AllowPromotionWithoutCommonHeader) decided in shouldConsiderAddressTypePromotion(). |
4798 ↗ | (On Diff #92181) | Yes, look like this is useless. I removed it. If canFormExtLd is true, return from this function (optimizeExt) instead. |
4802 ↗ | (On Diff #92181) | In case case canFormExtLd returns false, we should check ATPConsiderable and if ATPConsiderable is false rollback should happen. |
4808 ↗ | (On Diff #92181) | This should be target specific. So this should be mentioned in AArch64TTIImpl . |
lib/CodeGen/CodeGenPrepare.cpp | ||
---|---|---|
4800 ↗ | (On Diff #93530) | Could you move that into its own helper function? |
LGTM with a nitpick.
Also, I am guessing you'll have a follow-up patch for removing the AArch64AddressTypePromotion pass.
lib/CodeGen/CodeGenPrepare.cpp | ||
---|---|---|
4803 ↗ | (On Diff #93691) | No else after return statement |
I will post a follow-up patch to remove the AArch64AddressTypePromotion pass shortly.