When trying to optimize fortified library functions use the right location to insert new instructions in order to preserve correct def-use order. This fixes an issue where a misplaced instruction definition would happen to be *after* one of its use after a RAUW, forming invalid IR. This behaviour was introduced by r227250.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Seems reasonable, thanks!
lib/Transforms/Utils/SimplifyLibCalls.cpp | ||
---|---|---|
2080 | Why not sink this in the block below? That'll eliminate the need for the SimplifiedCI null check. |
lib/Transforms/Utils/SimplifyLibCalls.cpp | ||
---|---|---|
2080 | Doh! I'll include it in the commit. :-) |
Why not sink this in the block below? That'll eliminate the need for the SimplifiedCI null check.