[PATCH] D124185: [DAG] Fold freeze(bitcast(x)) -> bitcast(freeze(x))
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 21 09:32:04 PDT 2022
RKSimon created this revision.
RKSimon added reviewers: spatel, efriedma, nlopes, nikic.
Herald added subscribers: ecnelises, pengfei, hiraditya.
Herald added a project: All.
RKSimon requested review of this revision.
Herald added a project: LLVM.
This is a very specific fold to fix an upstream poor codegen issue.
InstCombine has the much more flexible pushFreezeToPreventPoisonFromPropagating but I don't think we're quite there with DAG/TLI handling for canCreateUndefOrPoison/isGuaranteedNotToBeUndefOrPoison value tracking yet.
Fixes #54911
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D124185
Files:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/bitcast-int-to-vector-bool.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124185.424233.patch
Type: text/x-patch
Size: 5256 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220421/edec8b8d/attachment.bin>
More information about the llvm-commits
mailing list