rL297171 introduced G_FNEG for floating-point negation instruction and IRTranslator started to translate FSUB -0.0, X to FNEG X. This patch adds a default action for G_FNEG to avoid breaking existing targets.
Details
Details
Diff Detail
Diff Detail
| Paths 
 |  Differential  D30721  
[GlobalISel] Add default action for G_FNEG ClosedPublic Authored by volkan on Mar 7 2017, 2:49 PM. 
Details Summary rL297171 introduced G_FNEG for floating-point negation instruction and IRTranslator started to translate FSUB -0.0, X to FNEG X. This patch adds a default action for G_FNEG to avoid breaking existing targets. 
Diff Detail Event Timeline
 
 This revision is now accepted and ready to land.Mar 7 2017, 3:27 PM 
Revision Contents 
 
Diff 90946 lib/CodeGen/GlobalISel/LegalizerHelper.cpp
 lib/CodeGen/GlobalISel/LegalizerInfo.cpp
 test/CodeGen/AArch64/GlobalISel/legalize-fneg.mir
 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Can't we simply reuse Ty?