summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TableGen/Record.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-05-28 06:16:39 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-05-28 06:16:39 +0000
commit587336d2ad2f4ff7570e7dbd03d635a826186586 (patch)
tree8dc9a4b8087d0448f820c8c271a011dccb4ecb75 /llvm/lib/TableGen/Record.cpp
parentc2a014697a6a6c30f7ea11fc500f03fbfb4ad432 (diff)
downloadbcm5719-llvm-587336d2ad2f4ff7570e7dbd03d635a826186586.tar.gz
bcm5719-llvm-587336d2ad2f4ff7570e7dbd03d635a826186586.zip
[Reassociate] Canonicalizing 'x [+-] (-Constant * y)' isn't always a win
Canonicalizing 'x [+-] (-Constant * y)' is not a win if we don't *know* we will open up CSE opportunities. If the multiply was 'nsw', then negating 'y' requires us to clear the 'nsw' flag. If this is actually worth pursuing, it is probably more appropriate to do so in GVN or EarlyCSE. This fixes PR23675. llvm-svn: 238397
Diffstat (limited to 'llvm/lib/TableGen/Record.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud