[CodeGenPrepare] Generalize inserted set from truncs to any inst.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 17 Jun 2015 20:44:32 +0000 (20:44 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 17 Jun 2015 20:44:32 +0000 (20:44 +0000)
commit4412d4b51f4d2e607cc09ad1ef00dc1d3489912f
tree8a250bb21ba0e83ea3e6a3a0573b814c149aaf64
parent6fc90b32e32b966b5ec27b8d923674193323c3a2
[CodeGenPrepare] Generalize inserted set from truncs to any inst.

It's been used before to avoid infinite loops caused by separate CGP
optimizations undoing one another.  We found one more such issue
caused by r238054.  To avoid it, generalize the "InsertedTruncs"
set to any inst, and use it to avoid touching those again.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239938 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp
test/CodeGen/AArch64/arm64-atomic.ll