OSDN Git Service

[LIR] Set attributes on memset_pattern16.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 27 Apr 2016 19:04:50 +0000 (19:04 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 27 Apr 2016 19:04:50 +0000 (19:04 +0000)
commita1d828055330ebdee863482f2c9bada795568dec
treeefa5424d80b04287b9ee4e548e961af2b2facb4d
parenta08b12b7a1504573273e0888fabd8fea0dcc7eb9
[LIR] Set attributes on memset_pattern16.

"inferattrs" will deduce the attribute, but it will be too late for
many optimizations. Set it ourselves when creating the call.

Differential Revision: http://reviews.llvm.org/D17598

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267762 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
test/Transforms/LoopIdiom/basic.ll