mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
IR: Simplify handleChangedOperand() fast path, NFC
Use `isUniqued()` instead of `isStoredDistinctInContext()`, and remove an assertion that won't be valid once temporaries are merged back in. llvm-svn: 226491
This commit is contained in:
parent
85d893bb11
commit
8caa30d063
@ -524,9 +524,7 @@ void UniquableMDNode::handleChangedOperand(void *Ref, Metadata *New) {
|
||||
unsigned Op = static_cast<MDOperand *>(Ref) - op_begin();
|
||||
assert(Op < getNumOperands() && "Expected valid operand");
|
||||
|
||||
if (isStoredDistinctInContext()) {
|
||||
assert(isResolved() && "Expected distinct node to be resolved");
|
||||
|
||||
if (!isUniqued()) {
|
||||
// This node is not uniqued. Just set the operand and be done with it.
|
||||
setOperand(Op, New);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user