[PATCH] D138238: [SROA] Change how we speculate `load`s of `select`s -- split block, insert then/else blocks, form two-entry PHI node
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 18 14:09:18 PST 2022
arsenm added inline comments.
================
Comment at: llvm/include/llvm/Transforms/Scalar/SROA.h:106-109
- /// All of these select instructions have been checked for the safety of
- /// speculation and by being speculated will allow promoting allocas
- /// currently in the promotable queue.
- SetVector<SelectInst *, SmallVector<SelectInst *, 2>> SpeculatableSelects;
----------------
Are there any cases where this should still try to speculate?
================
Comment at: llvm/lib/Transforms/Scalar/SROA.cpp:1384
+ NumLoadsRewritten += 2;
+ LLVM_DEBUG(dbgs() << " to: " << *PN << "\n");
+ LI.replaceAllUsesWith(PN);
----------------
Single quote newline
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138238/new/
https://reviews.llvm.org/D138238
More information about the llvm-commits
mailing list