[all-commits] [llvm/llvm-project] ab4fc8: [DAG] Emit table lookup from TargetLowering::expan...
shubhamnarlawar via All-commits
all-commits at lists.llvm.org
Mon Aug 8 04:08:19 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ab4fc87a9d96d759df3c287fd63892165e60e526
https://github.com/llvm/llvm-project/commit/ab4fc87a9d96d759df3c287fd63892165e60e526
Author: Shubham Narlawar <shubham.narlawar at rrlogic.co.in>
Date: 2022-08-08 (Mon, 08 Aug 2022)
Changed paths:
M llvm/include/llvm/CodeGen/TargetLowering.h
M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
M llvm/test/CodeGen/ARM/cttz.ll
M llvm/test/CodeGen/RISCV/ctlz-cttz-ctpop.ll
M llvm/test/CodeGen/RISCV/rv32zbb.ll
M llvm/test/CodeGen/RISCV/rv64zbb.ll
A llvm/test/CodeGen/SPARC/cttz.ll
Log Message:
-----------
[DAG] Emit table lookup from TargetLowering::expandCTTZ()
This patch emits table lookup in expandCTTZ.
Context -
https://reviews.llvm.org/D113291 transforms set of IR instructions to
cttz intrinsic but there are some targets which does not support CTTZ or
CTLZ. Hence, I generate a table lookup in TargetLowering::expandCTTZ().
Differential Revision: https://reviews.llvm.org/D128911
More information about the All-commits
mailing list