[llvm] [SimplifyCFG] Enable sinking instructions with differing alignments (PR #215858)

Sayan Sivakumaran via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 24 06:08:02 PDT 2026


================
@@ -801,6 +813,24 @@ void Instruction::andIRFlags(const Value *V) {
       DestICmp->setSameSign(DestICmp->hasSameSign() && SrcICmp->hasSameSign());
 }
 
+void Instruction::intersectIRAttributes(const Instruction *I) {
+  // TODO: Should we intersect metadata here too?
+  andIRFlags(I);
----------------
sivakusayan wrote:

I think I would expect this function to call `combineMetadata`, but it felt strange to add a dependency on `Transforms/Utils/Local.cpp` here. Maybe a separate patch could move that function here instead?

https://github.com/llvm/llvm-project/pull/215858


More information about the llvm-commits mailing list