diff options
author | Mark Seaborn <mseaborn@chromium.org> | 2013-03-29 17:42:10 -0700 |
---|---|---|
committer | Mark Seaborn <mseaborn@chromium.org> | 2013-03-29 17:42:10 -0700 |
commit | cd93e1afec966dba60433f8df5f78f10ef217f93 (patch) | |
tree | 97c1b68239f23dedd72f5283e37a4957af9d10a1 /lib/Analysis/NaCl/PNaClABIVerifyModule.cpp | |
parent | 946417b9fe7da9334c76182f28020ff4f46e11f8 (diff) |
PNaCl: Fix ExpandTls to handle a couple of corner cases involving PHI nodes
ExpandTls's use of replaceUsesOfWith() didn't work for PHI nodes
containing the same Constant twice (which needs to work for same or
differing incoming BasicBlocks). The same applies to
ExpandTlsConstantExpr.
I noticed this while implementing ExpandConstantExpr.
Fix this and factor out some common code that all three passes can
use.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=2837
TEST=test/Transforms/NaCl/*.ll
Review URL: https://codereview.chromium.org/13128002
Diffstat (limited to 'lib/Analysis/NaCl/PNaClABIVerifyModule.cpp')
0 files changed, 0 insertions, 0 deletions