[PATCH] D38133: [CGP] Make optimizeMemoryInst introduce a select/phi if it improves things
David Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 21 09:55:54 PDT 2017
davidxl added inline comments.
================
Comment at: test/Transforms/CodeGenPrepare/ARM/sink-addrmode.ll:160
+ %gep2 = getelementptr inbounds i32, i32* %ptr, i32 2
+ %select = select i1 %cmp, i32* %gep1, i32* %gep2
+ store i32 %value, i32* %select, align 4
----------------
The old select may have profile meta data, so you need to make sure the new select inherits it.
Repository:
rL LLVM
https://reviews.llvm.org/D38133
More information about the llvm-commits
mailing list