[llvm] [InstCombine] Fold constant byte stores to integer stores (PR #196740)
Pedro Lobo via llvm-commits
llvm-commits at lists.llvm.org
Sun May 10 05:20:56 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) {
----------------
pedroclobo wrote:
I didn't think of it. That is way cleaner. Thanks.
https://github.com/llvm/llvm-project/pull/196740
More information about the llvm-commits
mailing list