[all-commits] [llvm/llvm-project] 9eb426: [TargetLowering] Add NegatibleCost enum for isNega...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Wed Feb 12 03:51:53 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 9eb426c88ceb29f2a46ad977f4035d0f0e3d75ab
https://github.com/llvm/llvm-project/commit/9eb426c88ceb29f2a46ad977f4035d0f0e3d75ab
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2020-02-12 (Wed, 12 Feb 2020)
Changed paths:
M llvm/include/llvm/CodeGen/TargetLowering.h
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h
M llvm/lib/Target/X86/X86ISelLowering.cpp
M llvm/lib/Target/X86/X86ISelLowering.h
Log Message:
-----------
[TargetLowering] Add NegatibleCost enum for isNegatibleForFree return codes
The isNegatibleForFree/getNegatedExpression methods currently rely on a raw char value to indicate whether a negation is beneficial or not.
This patch replaces the char return value with an NegatibleCost enum to more clearly demonstrate what is implied.
It also renames isNegatibleForFree to getNegatibleCost to more accurately reflect whats going on.
Differential Revision: https://reviews.llvm.org/D74221
More information about the All-commits
mailing list