[InstCombine] Create store using IRBuilder
authorNikita Popov <npopov@redhat.com>
Wed, 17 May 2023 13:19:35 +0000 (15:19 +0200)
committerNikita Popov <npopov@redhat.com>
Wed, 17 May 2023 13:20:21 +0000 (15:20 +0200)
commit6170bb895917e69793fe2125bb79d2991183492b
tree5ea042e7421983cf9137ed834cb0da767ce5c6ce
parent53c03a3db16cd9b51476ce4b4fb1adc1b58f1ff7
[InstCombine] Create store using IRBuilder

This ensures it gets reprocessed in the same iteration. In
particular the alignment will be increased (which is quite
pointless, of course).
llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
llvm/test/Transforms/InstCombine/getelementptr.ll