[all-commits] [llvm/llvm-project] 3e8e05: [X86] Move hasOneUse check on PCMPGT(X, -1) -> PCMP...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Sun Apr 2 10:28:32 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3e8e056ece62f099b2ef4c53378ecdaca9da1108
https://github.com/llvm/llvm-project/commit/3e8e056ece62f099b2ef4c53378ecdaca9da1108
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2023-04-02 (Sun, 02 Apr 2023)
Changed paths:
M llvm/lib/Target/X86/X86ISelLowering.cpp
Log Message:
-----------
[X86] Move hasOneUse check on PCMPGT(X,-1) -> PCMPGT(0,X) inversion folds to the end of the match. NFCI.
Check the cheap parts of the pattern first, and make the more expensive hasOneUse() call as late as possible.
More information about the All-commits
mailing list