llvm.org GIT mirror llvm / 9c9d6b0
[LICM] Support unary FNeg in LICM Differential Revision: https://reviews.llvm.org/D65908 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368350 91177308-0d34-0410-b5e6-96231b3b80d8 Cameron McInally a month ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
10311031 bool isHoistableAndSinkableInst(Instruction &I) {
10321032 // Only these instructions are hoistable/sinkable.
10331033 return (isa(I) || isa(I) || isa(I) ||
1034 isa(I) || isa<BinaryOperator>(I) || isa<CastInst>(I) ||
1034 isa(I) || isa<CastInst>(I) ||
1035 isa(I) || isa(I) ||
10351036 isa(I) || isa(I) || isa(I) ||
10361037 isa(I) || isa(I) ||
10371038 isa(I) || isa(I) ||
126126 }
127127
128128 ; CHECK: define void @test6(float %f)
129 ; CHECK: call
130129 ; CHECK: fneg
131 ; CHECK: call
130 ; CHECK: br label %for.body
132131 define void @test6(float %f) #2 {
133132 entry:
134133 br label %for.body