i386: Avoid Redundant Argument Classification in construct_container
This commit optimizes argument handling in the i386 backend by removing a redundant call to classify_argument in construct_container.
This commit optimizes the i386 backend by removing a redundant call to classify_argument within the construct_container function. The examine_argument function already invokes classify_argument, making the initial call redundant. By recomputing the classification only when needed, this change streamlines the code and improves efficiency, without any intended functional change. The type of the in_return parameter in examine_argument is also changed to bool for clarity.
In Details
In construct_container, the early call to classify_argument is removed because examine_argument already invokes it. The classification is recomputed only when needed, with an assertion to ensure success. The type of the in_return parameter in examine_argument and construct_container is changed from int to bool.
For Context
In the process of compiling code for x86 (i386) processors, the compiler needs to determine how function arguments are passed (e.g., in registers or on the stack). This commit optimizes this process by removing a redundant step in the argument classification logic. This small optimization can contribute to faster compilation times.