[all-commits] [llvm/llvm-project] 8d20f2: Revert "[CodeGenPrepare] Fix isIVIncrement (PR49466)"
Jordan Rupprecht via All-commits
all-commits at lists.llvm.org
Fri Mar 12 14:00:14 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8d20f2c2c66eb486ff23cc3d55a53bd840b36971
https://github.com/llvm/llvm-project/commit/8d20f2c2c66eb486ff23cc3d55a53bd840b36971
Author: Jordan Rupprecht <rupprecht at google.com>
Date: 2021-03-12 (Fri, 12 Mar 2021)
Changed paths:
M llvm/lib/CodeGen/CodeGenPrepare.cpp
R llvm/test/CodeGen/X86/pr49466.ll
Log Message:
-----------
Revert "[CodeGenPrepare] Fix isIVIncrement (PR49466)"
This reverts commit cf82700af8c658ae09b14c3d01bb1e73e48d3bd3 due to a compile timeout when building the following with `clang -O2`:
```
template <class, class = int> class a;
struct b {
using d = int *;
};
struct e {
using f = b::d;
};
class g {
public:
e::f h;
e::f i;
};
template <class, class> class a : g {
public:
long j() const { return i - h; }
long operator[](long) const noexcept;
};
template <class c, class k> long a<c, k>::operator[](long l) const noexcept {
return h[l];
}
template <typename m, typename n> int fn1(m, n, const char *);
int o, p;
class D {
void q(const a<long> &);
long r;
};
void D::q(const a<long> &l) {
int s;
if (l[0])
for (; l.j(); ++s) {
if (l[s])
while (fn1(o, 0, ""))
;
r = l[s] / p;
}
}
```
More information about the All-commits
mailing list