Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(733)

Issue 282553003: PNaCl translator: combine insertelement / extractelement patterns generated by the toolchain into s… (Closed)

Created:
6 years, 7 months ago by JF
Modified:
6 years, 7 months ago
Reviewers:
Derek Schuff
CC:
native-client-reviews_googlegroups.com
Base URL:
http://git.chromium.org/native_client/pnacl-llvm.git@master
Visibility:
Public.

Description

PNaCl translator: combine insertelement / extractelement patterns generated by the toolchain into shufflevector shufflevector isn't part of the PNaCl ABI, insertelement / extractelement sequences are instead generated, but they help in generating higher performance code. This pass recognizes the patterns at translation time and reconstructs shufflevector, allowing the generated code to perform better. R=dschuff@chromium.org TEST= ninja check BUG= http://code.google.com/p/nativeclient/issues/detail?id=2205 Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-llvm.git;a=commit;h=1eecfea

Patch Set 1 #

Patch Set 2 : Canonicalize shufflevector with undef. #

Patch Set 3 : Fix typo on canonicalization range. #

Total comments: 4

Patch Set 4 : Add DCE, address dschuff's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -2 lines) Patch
M include/llvm/InitializePasses.h View 1 chunk +1 line, -0 lines 0 comments Download
M include/llvm/Transforms/NaCl.h View 1 chunk +1 line, -0 lines 0 comments Download
M lib/Transforms/NaCl/CMakeLists.txt View 1 chunk +1 line, -0 lines 0 comments Download
A lib/Transforms/NaCl/CombineVectorInstructions.cpp View 1 2 3 1 chunk +326 lines, -0 lines 0 comments Download
M lib/Transforms/NaCl/ExpandShuffleVector.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
A test/Transforms/NaCl/combine-shuffle-vector.ll View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
M tools/opt/opt.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M tools/pnacl-llc/pnacl-llc.cpp View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
JF
6 years, 7 months ago (2014-05-12 15:51:07 UTC) #1
Derek Schuff
https://codereview.chromium.org/282553003/diff/40001/lib/Transforms/NaCl/CombineVectorInstructions.cpp File lib/Transforms/NaCl/CombineVectorInstructions.cpp (right): https://codereview.chromium.org/282553003/diff/40001/lib/Transforms/NaCl/CombineVectorInstructions.cpp#newcode39 lib/Transforms/NaCl/CombineVectorInstructions.cpp:39: // TODO(jfb) This function is as-is from instcombine. there's ...
6 years, 7 months ago (2014-05-12 20:49:22 UTC) #2
JF
Update, fixed dschuff's comments and implemented DCE as discussed offline with dschuff (since we don't ...
6 years, 7 months ago (2014-05-12 22:00:00 UTC) #3
Derek Schuff
lgtm
6 years, 7 months ago (2014-05-12 22:13:55 UTC) #4
JF
6 years, 7 months ago (2014-05-12 22:48:22 UTC) #5
Message was sent while issue was closed.
Committed patchset #4 manually as r1eecfea (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698