llvm.org GIT mirror llvm / a1beca6
Apply the patch from PR14160. I failed to construct a testcase for this, but I'm applying it anyway since it seems to be obviously correct. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167370 91177308-0d34-0410-b5e6-96231b3b80d8 Duncan Sands 8 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
12441244 std::swap(V1, V2);
12451245 std::swap(V1Size, V2Size);
12461246 std::swap(O1, O2);
1247 std::swap(V1TBAAInfo, V2TBAAInfo);
12471248 }
12481249 if (const GEPOperator *GV1 = dyn_cast(V1)) {
12491250 AliasResult Result = aliasGEP(GV1, V1Size, V1TBAAInfo, V2, V2Size, V2TBAAInfo, O1, O2);
12531254 if (isa(V2) && !isa(V1)) {
12541255 std::swap(V1, V2);
12551256 std::swap(V1Size, V2Size);
1257 std::swap(V1TBAAInfo, V2TBAAInfo);
12561258 }
12571259 if (const PHINode *PN = dyn_cast(V1)) {
12581260 AliasResult Result = aliasPHI(PN, V1Size, V1TBAAInfo,
12631265 if (isa(V2) && !isa(V1)) {
12641266 std::swap(V1, V2);
12651267 std::swap(V1Size, V2Size);
1268 std::swap(V1TBAAInfo, V2TBAAInfo);
12661269 }
12671270 if (const SelectInst *S1 = dyn_cast(V1)) {
12681271 AliasResult Result = aliasSelect(S1, V1Size, V1TBAAInfo,