[PATCH] D150266: [AMDGPU] Improve PHI-breaking heuristics in CGP
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 12 07:00:57 PDT 2023
arsenm accepted this revision.
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp:1433
+
+ // if the vector source is another instruction, it must be in the same basic
+ // block. Otherwise, the DAGCombiner won't see the whole thing and is
----------------
Capitalize
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp:1442
- // If the insertelement chain ends with a constant, it's fine.
- if (isa<Constant>(Next->getOperand(0)))
+ // all elements covered.
+ if (EltsCovered.all())
----------------
Capitalize
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150266/new/
https://reviews.llvm.org/D150266
More information about the llvm-commits
mailing list