diff options
author | Craig Topper <craig.topper@sifive.com> | 2025-03-06 21:55:47 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-06 21:55:47 -0800 |
commit | bedb9077c38cf01a3f9303d68599ea95677be5b7 (patch) | |
tree | 30214c87dfd7281644893afe2e95bd559cd4a382 /llvm/lib/IR/Module.cpp | |
parent | c02019141cfe4e2bacdfa67262e84eee838f2e38 (diff) | |
download | llvm-bedb9077c38cf01a3f9303d68599ea95677be5b7.zip llvm-bedb9077c38cf01a3f9303d68599ea95677be5b7.tar.gz llvm-bedb9077c38cf01a3f9303d68599ea95677be5b7.tar.bz2 |
[RISCV] Simplify how we find combinable cm.pop+ret. (#130204)
Instead of scanning the whole basic block for a POP, find the RET and
then look backwards for the POP. Using getFirstTerminator, we can do
this with less code and it's probably faster.
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions