forked from OSchip/llvm-project
[ARM] Followup to r275537 addressing review comments
Address Chad's comment in D22216 which I missed due to tunnel vision on the "LGTM" comment. llvm-svn: 275538
This commit is contained in:
parent
a454a11d60
commit
2af08fa051
|
@ -1849,8 +1849,8 @@ ARMTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
|
|||
false, false, 0);
|
||||
}
|
||||
} else if (isa<GlobalAddressSDNode>(Callee)) {
|
||||
// If we're optimizing for minimum size and the function is called many
|
||||
// times in this block, we can improve codesize by calling indirectly
|
||||
// If we're optimizing for minimum size and the function is called three or
|
||||
// more times in this block, we can improve codesize by calling indirectly
|
||||
// as BLXr has a 16-bit encoding.
|
||||
auto *GV = cast<GlobalAddressSDNode>(Callee)->getGlobal();
|
||||
auto *BB = CLI.CS->getParent();
|
||||
|
|
Loading…
Reference in New Issue