[all-commits] [llvm/llvm-project] 0954c6: [DAG] visitFREEZE - only fold integer types to an ...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Mon Dec 16 08:47:37 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0954c67d7ae412af9f8da5149565d9af837ac575
https://github.com/llvm/llvm-project/commit/0954c67d7ae412af9f8da5149565d9af837ac575
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2024-12-16 (Mon, 16 Dec 2024)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
A llvm/test/CodeGen/X86/pr120093.ll
Log Message:
-----------
[DAG] visitFREEZE - only fold integer types to an all ones constant
ISD::isBuildVectorAllOnes can peek through bitcasts, so this can match against FP NAN (ish) data (e.g. double (bitcast i64 -1)) under certain circumstances - bail if the type isn't an integer and let bitcast folding handle it first.
Fixes #120093
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list