Landing: 1a751916c6d5
Project / Subsystem
gcc / phiopt
Date
2026-07-23
Author
Andrea Pinski
Commit
1a751916c6d506ba49b318d38675184191647bf8
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- phiopt
- patch_id
- —
- commit_hash
- 1a751916c6d506ba49b318d38675184191647bf8
- source_type
- github
- headline
- phiopt: Add TARGET_MEM_REF support to factoring of loads.
- tldr
- Improves load factoring optimization by supporting `TARGET_MEM_REF` on certain memory accesses.
- author
- Andrea Pinski
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • phiopt
- • tree-ssa
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-23T00:00:00.000Z
This commit enhances the factor_out_conditional_load optimization pass in GCC by adding support for TARGET_MEM_REF, which represents memory references with target-specific constraints. Previously, this optimization could not handle TARGET_MEM_REF instances, leading to less optimal code generation. The update allows the pass to factor out loads that use TARGET_MEM_REF under specific conditions, improving generated code quality and achieving comparable performance to LLVM for certain benchmarks.