esmeyi d1115c2b84 [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
2022-10-31 01:33:50 -04:00
..
2022-10-11 17:24:06 +00:00
2021-05-17 06:08:06 -05:00
2021-08-18 17:52:53 +08:00
2022-10-11 17:24:06 +00:00
2022-10-11 17:24:06 +00:00
2022-10-11 17:24:06 +00:00
2022-10-11 17:24:06 +00:00
2020-06-01 02:30:27 +00:00
2022-10-11 17:24:06 +00:00