mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
sink a call into its only use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129503 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3c6e746b5f
commit
c0c7fca2fe
@ -1849,7 +1849,6 @@ TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1,
|
||||
ISD::CondCode Cond, bool foldBooleans,
|
||||
DAGCombinerInfo &DCI, DebugLoc dl) const {
|
||||
SelectionDAG &DAG = DCI.DAG;
|
||||
LLVMContext &Context = *DAG.getContext();
|
||||
|
||||
// These setcc operations always fold.
|
||||
switch (Cond) {
|
||||
@ -1956,7 +1955,7 @@ TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1,
|
||||
}
|
||||
}
|
||||
if (bestWidth) {
|
||||
EVT newVT = EVT::getIntegerVT(Context, bestWidth);
|
||||
EVT newVT = EVT::getIntegerVT(*DAG.getContext(), bestWidth);
|
||||
if (newVT.isRound()) {
|
||||
EVT PtrType = Lod->getOperand(1).getValueType();
|
||||
SDValue Ptr = Lod->getBasePtr();
|
||||
|
Loading…
Reference in New Issue
Block a user