HomePhabricator

[InstCombine] limit nsz: -(X - Y) --> Y - X to hasOneUse()

Authored by spatel on Apr 6 2018, 10:24 AM.

Description

[InstCombine] limit nsz: -(X - Y) --> Y - X to hasOneUse()

As noted in the post-commit discussion for r329350, we shouldn't
generally assume that fsub is the same cost as fneg.

llvm-svn: 329429

Details

Committed
spatelApr 6 2018, 10:24 AM
Parents
rGe0c2c49a15fb: [clang-tidy] Sort includes; NFC
Branches
Unknown
Tags
Unknown