aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
authorManish Kausik H <46352931+Nirhar@users.noreply.github.com>2024-07-08 18:31:32 +0530
committerGitHub <noreply@github.com>2024-07-08 14:01:32 +0100
commit69192e0193e60c169c7776f444362dffba31eb7d (patch)
treedcccfa95f356e41810f0ff7bd994ade595479574 /llvm/lib/Object/ELFObjectFile.cpp
parentcb72aecea6e7da49c7a7fbeb1bde4e401324b9ba (diff)
downloadllvm-69192e0193e60c169c7776f444362dffba31eb7d.zip
llvm-69192e0193e60c169c7776f444362dffba31eb7d.tar.gz
llvm-69192e0193e60c169c7776f444362dffba31eb7d.tar.bz2
[LegalizeDAG] Optimize CodeGen for `ISD::CTLZ_ZERO_UNDEF` (#83039)
Previously we had the same instructions being generated for `ISD::CTLZ` and `ISD::CTLZ_ZERO_UNDEF` which did not take advantage of the fact that zero is an invalid input for `ISD::CTLZ_ZERO_UNDEF`. This commit separates codegen for the two cases to allow for the optimization for the latter case. The details of the optimization are outlined in #82075 Fixes #82075 Co-authored-by: Manish Kausik H <hmamishkausik@gmail.com>
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions