llvm.org GIT mirror llvm / 75b0eda
This should use isIndenticalToWhenDefined. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80039 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 11 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
167167 /// identical to the current one. This means that all operands match and any
168168 /// extra information (e.g. load is volatile) agree.
169169 bool Instruction::isIdenticalTo(const Instruction *I) const {
170 return isIdenticalTo(I) &&
170 return isIdenticalToWhenDefined(I) &&
171171 SubclassOptionalData == I->SubclassOptionalData;
172172 }
173173
174 /// isIdenticalToWenDefined - This is like isIdenticalTo, except that it
174 /// isIdenticalToWhenDefined - This is like isIdenticalTo, except that it
175175 /// ignores the SubclassOptionalData flags, which specify conditions
176176 /// under which the instruction's result is undefined.
177177 bool Instruction::isIdenticalToWhenDefined(const Instruction *I) const {