mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Second attempt at fixing the performance regressions introduced
by my recent GVN improvement. Looking through a single layer of PHI nodes when attempting to sink GEPs, we need to iteratively look through arbitrary PHI nests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120202 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -39,6 +39,12 @@ struct ExtAddrMode : public TargetLowering::AddrMode {
|
||||
ExtAddrMode() : BaseReg(0), ScaledReg(0) {}
|
||||
void print(raw_ostream &OS) const;
|
||||
void dump() const;
|
||||
|
||||
bool operator==(const ExtAddrMode& O) const {
|
||||
return (BaseReg == O.BaseReg) && (ScaledReg == O.ScaledReg) &&
|
||||
(BaseGV == O.BaseGV) && (BaseOffs == O.BaseOffs) &&
|
||||
(HasBaseReg == O.HasBaseReg) && (Scale == O.Scale);
|
||||
}
|
||||
};
|
||||
|
||||
static inline raw_ostream &operator<<(raw_ostream &OS, const ExtAddrMode &AM) {
|
||||
|
Reference in New Issue
Block a user