summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/ns3.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2019-07-18 12:48:01 +0000
committerSanjay Patel <spatel@rotateright.com>2019-07-18 12:48:01 +0000
commite6547859122ce590f85702c295e9f9cc1a80954b (patch)
treeba758b2a32fc2d1d7767162c14f75302fcac753d /lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/ns3.cpp
parent37d7cb2df0c4261c582209664e6cd0ef7b6f2bbb (diff)
downloadbcm5719-llvm-e6547859122ce590f85702c295e9f9cc1a80954b.tar.gz
bcm5719-llvm-e6547859122ce590f85702c295e9f9cc1a80954b.zip
[x86] try harder to form LEA from ADD to avoid flag conflicts (PR40483)
LEA doesn't affect flags, so use it more liberally to replace an ADD when we know that the ADD operands affect flags. In the motivating example from PR40483: https://bugs.llvm.org/show_bug.cgi?id=40483 ...this lets us avoid duplicating a math op just to avoid flag conflict. As mentioned in the TODO comments, this heuristic can be extended to fire more often if that leads to more improvements. Differential Revision: https://reviews.llvm.org/D64707 llvm-svn: 366431
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/ns3.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud