summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-02-23 17:14:28 +0000
committerSanjay Patel <spatel@rotateright.com>2018-02-23 17:14:28 +0000
commit6b9c7a9c83fed425ac6f71d9378c749f3c496045 (patch)
tree4f132ac49a71f903a8fc330f9ed52c765c374c28 /clang/lib/CodeGen/CodeGenModule.cpp
parent4a9116e8976f0c137b38d421497650b1337e73fc (diff)
downloadbcm5719-llvm-6b9c7a9c83fed425ac6f71d9378c749f3c496045.tar.gz
bcm5719-llvm-6b9c7a9c83fed425ac6f71d9378c749f3c496045.zip
[InstCombine] refactor fmul with negated op folds; NFCI
The existing code was inefficiently looking for 'nsz' variants. That's unnecessary because we canonicalize those to the expected form with -0.0. We may also want to adjust or remove the fold that sinks negation. We don't do that for fdiv (or integer ops?). That should be uniform? It may also lead to missed optimization as in PR21914: https://bugs.llvm.org/show_bug.cgi?id=21914 ...or we just have to fix other passes to avoid that problem. llvm-svn: 325924
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud