SuccessChanges

Summary

  1. [LegalizeTypes] In PromoteFloatOp_SETCC, don't both querying for (details)
  2. [LegalizeTypes] Teach BitcastToInt_ATOMIC_SWAP to only create FP16_TO_FP (details)
Commit 95ce8f94986c7d246c381757f6afbc00fe7bdbfb by craig.topper
[LegalizeTypes] In PromoteFloatOp_SETCC, don't both querying for
transforming the result type.
The result type is already legal, is doesnt' need to be transformed.
The file was modifiedllvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp (diff)
Commit 1dc0c8af5e7d330bcbe23e4d88502e6b7f5135b8 by craig.topper
[LegalizeTypes] Teach BitcastToInt_ATOMIC_SWAP to only create FP16_TO_FP
when called from PromoteFloatResult.
There's also a call from SoftenFloatResult that should not be promoted.
The change test case would fail with the new RUN line prior to this
change.
The file was modifiedllvm/test/CodeGen/X86/atomic32.ll (diff)
The file was modifiedllvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp (diff)