diff options
| author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2017-11-22 08:58:30 +0000 |
|---|---|---|
| committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2017-11-22 08:58:30 +0000 |
| commit | 181e260e32b6a45a72e51e1fd4a96c4c73181be5 (patch) | |
| tree | d43ca1f64d2549e41b87f8683b998b34f018039e /llvm/lib/Analysis/IndirectCallPromotionAnalysis.cpp | |
| parent | ee74044f9301a6c658e1435b9cf5c05aa1284002 (diff) | |
| download | bcm5719-llvm-181e260e32b6a45a72e51e1fd4a96c4c73181be5.tar.gz bcm5719-llvm-181e260e32b6a45a72e51e1fd4a96c4c73181be5.zip | |
[DAGCombiner] Bugfix in isAlias().
Since i1 is a legal type, this:
NumBytes = Op1->getMemoryVT().getSizeInBits() >> 3;
is wrong and should be instead
NumBytes = Op0->getMemoryVT().getStoreSize();
There seems to be more places where this should be fixed outside DAGCombiner.
Review: Hal Finkel
https://bugs.llvm.org/show_bug.cgi?id=35366
llvm-svn: 318824
Diffstat (limited to 'llvm/lib/Analysis/IndirectCallPromotionAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions

