[ELF][PPC] Simplify {read,write}FromHalf16
authorFangrui Song <maskray@google.com>
Sat, 8 Jun 2019 05:19:05 +0000 (05:19 +0000)
committerFangrui Song <maskray@google.com>
Sat, 8 Jun 2019 05:19:05 +0000 (05:19 +0000)
commit27de3d395035f94e94c759b84679bc923294dcbe
tree124e775b220d8cc23266ed8521dc52e174cdff59
parent99dfd7084d628457c459c3c74159d2122f759d2c
[ELF][PPC] Simplify {read,write}FromHalf16

I've change the variable names used in PPC64.cpp from "Instr" to "Insn"
because "Insn" is a more common abbreviation for "instruction".

While changing PPC64.cpp relocateOne(), make R_PPC64_ADDR16_LO{_DS}
slightly more efficient by saving a read and a write for the TocOptimize
case.

Reviewed By: ruiu

Differential Revision: https://reviews.llvm.org/D63043

llvm-svn: 362867
lld/ELF/Arch/PPC.cpp
lld/ELF/Arch/PPC64.cpp