search for: replacesalluseswith

Displaying 1 result from an estimated 1 matches for "replacesalluseswith".

Did you mean: replacealluseswith
2020 May 06
2
Unexpected behavior found in Stack Coloring pass, need clarification
...s() does not modify IR in my knowledge. So it is safe to assume that LLVM IR produced at the end of the pass is same as the IR after the call to remapInstructions(..) is made. 3. While executing remapInstructions(..), the uses of %ref.tmp are replaced with %0 in %tmpcast definition when From-AI->replacesAllUsesWith(Inst) call is made. This is triggering the bug. It basically grabs the UseList (one of them being the definition of %tmpcast) and renames all the %ref.tmp uses to %0. *Basic Block IR before replaceAllUsesWith method is executed*: entry: %a = alloca %struct.e, align 1 %ref.tmp = alloca { <2...