[SelectionDAG] Remove TargetLowering::getConstTrueVal. Use SelectionDAG::getBoolConst...
authorCraig Topper <craig.topper@intel.com>
Sun, 11 Feb 2018 04:58:58 +0000 (04:58 +0000)
committerCraig Topper <craig.topper@intel.com>
Sun, 11 Feb 2018 04:58:58 +0000 (04:58 +0000)
commit36f913ee80d94152802ba72384a979ef20e0780a
treea18ea196ef5e0a4adcd47e0457f238fcddb9aaa4
parentba5ad55965bd7e67b4477cd7e0a4dda21fba6510
[SelectionDAG] Remove TargetLowering::getConstTrueVal. Use SelectionDAG::getBoolConstant in the one place it was used.

SelectionDAG::getBoolConstant was recently introduced. At the time I didn't know getConstTrueVal existed, but I think getBoolConstant is better as it will use the source VT to make sure it can properly detect floating point if it is configured differently.

llvm-svn: 324832
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp