mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 21:31:03 +00:00
Avoid generating a convert_rndsat node when the src and dest type are the same.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60869 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
775bb805c5
commit
6db08c4d2f
@ -1140,6 +1140,10 @@ SDValue SelectionDAG::getCondCode(ISD::CondCode Cond) {
|
||||
SDValue SelectionDAG::getConvertRndSat(MVT VT, SDValue Val, SDValue DTy,
|
||||
SDValue STy, SDValue Rnd, SDValue Sat,
|
||||
ISD::CvtCode Code) {
|
||||
// If the src and dest types are the same, no conversion is necessary.
|
||||
if (DTy == STy)
|
||||
return Val;
|
||||
|
||||
FoldingSetNodeID ID;
|
||||
void* IP = 0;
|
||||
if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP))
|
||||
|
Loading…
x
Reference in New Issue
Block a user