aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorPhilip Reames <preames@rivosinc.com>2025-01-22 10:42:15 -0800
committerGitHub <noreply@github.com>2025-01-22 10:42:15 -0800
commit589593254eede2f624f29390dc1018725e536505 (patch)
treeaabc15612126112dd2c2afc55df350871ffcad80 /clang/lib/CodeGen/CodeGenModule.h
parentec15b242505a46ea7d195a6520fb869a80a2cd10 (diff)
downloadllvm-589593254eede2f624f29390dc1018725e536505.zip
llvm-589593254eede2f624f29390dc1018725e536505.tar.gz
llvm-589593254eede2f624f29390dc1018725e536505.tar.bz2
[RISCV][VLOpt] Reorganize visit order and worklist management (#123973)
This implements a suggestion by Craig in PR #123878. We can move the worklist management out of the per-instruction work and do it once at the end of scanning all the instructions. This should reduce repeat visitation of the same instruction when no changes can be made. Note that this does not remove the inherent O(N^2) in the algorithm. We're still potentially visiiting every user of every def. I also included a guard for unreachable blocks since that had been mentioned as a possible cause. It seems we've rulled that out, but guarding for this case is still a good idea.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions