Displaying 1 result from an estimated 1 matches for "bb1_clone".
2008 Sep 02
0
[LLVMdev] CloneBasicBlock and Unnamed Temporaries
...ic
blocks in one of my transform passes. For example, when I have a basic
block like:
bb1: ; preds = %bb
load i32* %i, align 4 ; <i32>:11 [#uses=2]
load i32* %n_addr, align 4 ; <i32>:12 [#uses=2]
icmp slt i32 %11, %12 ; <i1>:13 [#uses=2]
cloning it gives something like:
bb1_clone: ; preds = %entry
load i32* %i, align 4 ; <i32>:28 [#uses=0]
load i32* %n_addr, align 4 ; <i32>:29 [#uses=0]
icmp slt i32 %11, %12 ; <i1>:30 [#uses=0]
Since the temporaries referred to in the cloned icmp instruction are
still those created in bb1, I get the "Instructi...