aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
diff options
context:
space:
mode:
authorChen Zheng <czhengsz@cn.ibm.com>2020-06-18 23:31:51 -0400
committerChen Zheng <czhengsz@cn.ibm.com>2020-06-23 06:28:18 -0400
commit7ab05d9a60b00556fc3510f1695648dfbd8c457e (patch)
tree4548f31f3d4915e50691f64006ce06f09604082b /llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
parentc8fae2bb4afed8073096860d23e5759055c9bf88 (diff)
downloadllvm-7ab05d9a60b00556fc3510f1695648dfbd8c457e.zip
llvm-7ab05d9a60b00556fc3510f1695648dfbd8c457e.tar.gz
llvm-7ab05d9a60b00556fc3510f1695648dfbd8c457e.tar.bz2
[PowerPC] fold addi's imm operand to its imm form consumer's displacement
This patch adds a function to do following transformation: %0:g8rc_and_g8rc_nox0 = ADDI8 %5:g8rc_and_g8rc_nox0, 144 STD killed %7:g8rc, 16, %0:g8rc_and_g8rc_nox0 :: (store 8 into %ir.8) ------> STD killed %7:g8rc, 160, %5:g8rc_and_g8rc_nox0 :: (store 8 into %ir.8) Reviewed By: steven.zhang Differential Revision: https://reviews.llvm.org/D81723
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyIndVar.cpp')
0 files changed, 0 insertions, 0 deletions