[all-commits] [llvm/llvm-project] d49a89: Reapply [ConstantFold] Remove unnecessary BitCastC...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Fri Nov 3 03:40:18 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d49a893cdbea0dd6f8fde7dc9f321b2e0d169bba
https://github.com/llvm/llvm-project/commit/d49a893cdbea0dd6f8fde7dc9f321b2e0d169bba
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-11-03 (Fri, 03 Nov 2023)
Changed paths:
M llvm/lib/IR/ConstantFold.cpp
Log Message:
-----------
Reapply [ConstantFold] Remove unnecessary BitCastConstantVector() (NFCI)
ConstantFoldCastInstruction() already has generic code to perform
lane-wise casts for vectors. There is no need to repeate it
specifically for bitcasts.
However, we do need to keep the special case for vectors of -1,
which is not handled elsewhere.
More information about the All-commits
mailing list