aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Threading.cpp
diff options
context:
space:
mode:
authorKai Luo <lkail@cn.ibm.com>2021-07-09 04:42:27 +0000
committerKai Luo <lkail@cn.ibm.com>2021-07-09 04:42:54 +0000
commit55bd12d4b7eeed5d2909de4babaead12396c521c (patch)
treef98b46425e95636b9ddc7a151a35afa483bae123 /llvm/lib/Support/Threading.cpp
parent5553d83adac68c80226bc626feb14f9c24d9f886 (diff)
downloadllvm-55bd12d4b7eeed5d2909de4babaead12396c521c.zip
llvm-55bd12d4b7eeed5d2909de4babaead12396c521c.tar.gz
llvm-55bd12d4b7eeed5d2909de4babaead12396c521c.tar.bz2
[PowerPC] Remove implicit use register after transformToImmFormFedByLI()
When the instruction has imm form and fed by LI, we can remove the redundat LI instruction. Below is an example: ``` renamable $x5 = LI8 2 renamable $x4 = exact SRD killed renamable $x4, killed renamable $r5, implicit $x5 ``` will be converted to: ``` renamable $x5 = LI8 2 renamable $x4 = exact RLDICL killed renamable $x4, 62, 2, implicit killed $x5 ``` But when we do this optimization, we forget to remove implicit killed $x5 This bug has caused a lnt case error. This patch is to fix above bug. Reviewed By: #powerpc, shchenz Differential Revision: https://reviews.llvm.org/D85288
Diffstat (limited to 'llvm/lib/Support/Threading.cpp')
0 files changed, 0 insertions, 0 deletions