summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetInstrInfo.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2016-06-02 17:30:49 +0000
committerDimitry Andric <dimitry@andric.com>2016-06-02 17:30:49 +0000
commit6a482a73d6f05570e45a7f5a4519be42880a2af2 (patch)
tree842ec2df3c53aef0de47136398fc6263faaee572 /llvm/lib/CodeGen/TargetInstrInfo.cpp
parent6d3bd6866b5a2665e677d6b0483403aa88660afb (diff)
downloadbcm5719-llvm-6a482a73d6f05570e45a7f5a4519be42880a2af2.tar.gz
bcm5719-llvm-6a482a73d6f05570e45a7f5a4519be42880a2af2.zip
Only attempt to detect AVG if SSE2 is available
Summary: In PR29973 Sanjay Patel reported an assertion failure when a certain loop was optimized, for a target without SSE2 support. It turned out this was because of the AVG pattern detection introduced in rL253952. Prevent the assertion failure by bailing out early in `detectAVGPattern()`, if the target does not support SSE2. Also add a minimized test case. Reviewers: congh, eli.friedman, spatel Subscribers: emaste, llvm-commits Differential Revision: http://reviews.llvm.org/D20905 llvm-svn: 271548
Diffstat (limited to 'llvm/lib/CodeGen/TargetInstrInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud