summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-08-04 15:42:47 +0000
committerSanjay Patel <spatel@rotateright.com>2017-08-04 15:42:47 +0000
commit79e7f6b3e394ad2f3b58581085847b4bb11fdc75 (patch)
tree9473613f14dc301e4685f83eaf774190908ba3f9 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parent4b11a78a6e34eee30b41e7edec47d9af5c400ed6 (diff)
downloadbcm5719-llvm-79e7f6b3e394ad2f3b58581085847b4bb11fdc75.tar.gz
bcm5719-llvm-79e7f6b3e394ad2f3b58581085847b4bb11fdc75.zip
[InstCombine] narrow lshr with constant
Name: narrow_shift Pre: C1 < 8 %zx = zext i8 %x to i32 %l = lshr i32 %zx, C1 => %narrowC = trunc i32 C1 to i8 %ns = lshr i8 %x, %narrowC %l = zext i8 %ns to i32 http://rise4fun.com/Alive/jIV This isn't directly applicable to PR34046 as written, but we need to have more narrowing folds like this to be sure that rotate patterns are recognized. llvm-svn: 310060
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud