[all-commits] [llvm/llvm-project] 0ce13f: [RISCV] Add curly braces around a case body that d...
Craig Topper via All-commits
all-commits at lists.llvm.org
Fri Jul 16 09:36:13 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0ce13f92b7c6b368c0d1862d9e76540aad9629a6
https://github.com/llvm/llvm-project/commit/0ce13f92b7c6b368c0d1862d9e76540aad9629a6
Author: Craig Topper <craig.topper at sifive.com>
Date: 2021-07-16 (Fri, 16 Jul 2021)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Log Message:
-----------
[RISCV] Add curly braces around a case body that declares variables. NFC
This is at the end of the switch so doesn't cause any issues now,
but if a new case is added it will break.
Commit: 4dbb78806871b158c9ec23196f075c070baa2909
https://github.com/llvm/llvm-project/commit/4dbb78806871b158c9ec23196f075c070baa2909
Author: Craig Topper <craig.topper at sifive.com>
Date: 2021-07-16 (Fri, 16 Jul 2021)
Changed paths:
M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
M llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.cpp
M llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.h
M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
M llvm/test/CodeGen/RISCV/rv64zba.ll
M llvm/test/CodeGen/RISCV/rv64zbb-zbp.ll
M llvm/test/CodeGen/RISCV/xaluo.ll
M llvm/test/MC/RISCV/rv64b-aliases-valid.s
Log Message:
-----------
[RISCV] Teach constant materialization that it can use zext.w at the end with Zba to reduce number of instructions.
If the upper 32 bits are zero and bit 31 is set, we might be able to
use zext.w to fill in the zeros after using an lui and/or addi.
Most of this patch is plumbing the subtarget features into the constant
materialization.
Reviewed By: luismarques
Differential Revision: https://reviews.llvm.org/D105509
Compare: https://github.com/llvm/llvm-project/compare/4d188a652408...4dbb78806871
More information about the All-commits
mailing list