[all-commits] [llvm/llvm-project] 76c515: [DAG] combineShiftToAVG - don't create avgfloor w...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Thu Jun 13 04:38:23 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 76c5158aed52bbf21980752e38262e925cd8db8e
https://github.com/llvm/llvm-project/commit/76c5158aed52bbf21980752e38262e925cd8db8e
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2024-06-13 (Thu, 13 Jun 2024)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
M llvm/test/CodeGen/RISCV/pr95284.ll
M llvm/test/CodeGen/X86/avg.ll
Log Message:
-----------
[DAG] combineShiftToAVG - don't create avgfloor with scalar constant operands unless legal.
Converting to avgfloor and then expanding it back to shift+add later is likely to prevent other folds (re-association and value-tracking in particular) in the meantime.
Fixes #95284
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