[llvm] [DAGCombiner][X86] Push bitcast/ext through freeze for loads (PR #163070)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 26 11:44:32 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))
----------------
arsenm wrote:
No, these are not simply droppable
https://github.com/llvm/llvm-project/pull/163070
More information about the llvm-commits
mailing list