[llvm] [DAGCombiner][X86] Push bitcast/ext through freeze for loads (PR #163070)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 27 07:53:08 PDT 2025


================
@@ -16944,6 +16944,23 @@ SDValue DAGCombiner::visitFREEZE(SDNode *N) {
   if (N0.getOpcode() == ISD::SRA || N0.getOpcode() == ISD::SRL)
     return SDValue();
 
+  // fold: bitcast(freeze(load)) -> freeze(bitcast(load))
----------------
RKSimon wrote:

#164618 only handles BITCASTS - we need to handle EXT cases separately

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


More information about the llvm-commits mailing list