[llvm] [InstCombine] Fold constant byte stores to integer stores (PR #196740)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sat May 9 13:57:36 PDT 2026
================
@@ -1462,6 +1462,36 @@ static bool equivalentAddressValues(Value *A, Value *B) {
return false;
}
+/// Recursively rewrite a ConstantByte into an equivalent ConstantInt.
+static Constant *convertConstantByteToConstantInt(Constant *C) {
----------------
nikic wrote:
Why can't we use a simple (constant) bitcast here? (With an ImmArg constant to exclude constant expressions.)
https://github.com/llvm/llvm-project/pull/196740
More information about the llvm-commits
mailing list