A method, an apparatus, and a computer program product are provided for
detecting load/store dependency in a memory system by dynamically
changing the address width for comparison. An incoming load/store
operation must be compared to the operations in the pipeline and the
queues to avoid address conflicts. Overall, the present invention
introduces a cache hit or cache miss input into the load/store dependency
logic. If the incoming load operation is a cache hit, then the quadword
boundary address value is used for detection. If the incoming load
operation is a cache miss, then the cacheline boundary address value is
used for detection. This invention enhances the performance of LHS and
LHR operations in a memory system.