[all-commits] [llvm/llvm-project] 051918: [DAG] expandIntMINMAX - add umax(x, 1) --> sub(x, cm...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Fri May 5 11:28:16 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 051918c71e4d5b612da4124ef86b386c595cea7f
https://github.com/llvm/llvm-project/commit/051918c71e4d5b612da4124ef86b386c595cea7f
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2023-05-05 (Fri, 05 May 2023)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
M llvm/lib/Target/X86/X86ISelLowering.cpp
Log Message:
-----------
[DAG] expandIntMINMAX - add umax(x,1) --> sub(x,cmpeq(x,0)) fold
Move the fold from X86 to generic expansion
(We also have several existing expansions that are missing freezes on repeated operands - I've added a TODO for now).
More information about the All-commits
mailing list