diff options
author | esmeyi <esme.yi@ibm.com> | 2022-10-31 01:33:50 -0400 |
---|---|---|
committer | esmeyi <esme.yi@ibm.com> | 2022-10-31 01:33:50 -0400 |
commit | d1115c2b84d42eefd1546463507ce84f45c6b7cd (patch) | |
tree | 0b14d1060334a32315a52b70bbc71298b0ed593d /llvm/unittests/Support/CommandLineTest.cpp | |
parent | cb33ef7ca71d864b5fb8efbe59d77e895ba6e9a0 (diff) | |
download | llvm-d1115c2b84d42eefd1546463507ce84f45c6b7cd.zip llvm-d1115c2b84d42eefd1546463507ce84f45c6b7cd.tar.gz llvm-d1115c2b84d42eefd1546463507ce84f45c6b7cd.tar.bz2 |
[PowerPC] Optimize compare by using record form in post-RA.
Summary: We currently optimize the comparison only in SSA, therefore we will miss some optimization opportunities where the input of comparison is lowered from COPY in post-RA.
Ie. ExpandPostRA::LowerCopy is called after PPCInstrInfo::optimizeCompareInstr.
This patch optimizes the comparison in post-RA and only the cases that compare against zero can be handled.
D131374 converts the comparison and its user to a compare against zero with the appropriate predicate on the branch, which creates additional opportunities for this patch.
Reviewed By: shchenz, lkail
Differential Revision: https://reviews.llvm.org/D131873
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions